[LLVMbugs] [Bug 13157] New: Segmentation fault on valid code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 20 12:17:13 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13157

             Bug #: 13157
           Summary: Segmentation fault on valid code
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: grabner at icg.tugraz.at
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The following simple program

class A { public: void operator()(int x, int y = 2, ...) {} };
int main() { A()(1); }

can be compiled with g++, but causes clang++ to segfault with the attached
error message. The compiler versions on my system are:

$ g++ --version
g++ (SUSE Linux) 4.7.0 20120413 [gcc-4_7-branch revision 186417]

$ clang++ --version
clang version 3.1 (branches/release_31)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Kind regards,
Markus

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list