[LLVMbugs] [Bug 6398] New: clang++ segfaults when parsing c++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 22 14:15:33 PST 2010


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

           Summary: clang++ segfaults when parsing c++
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P5
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hinokind at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4289)
 --> (http://llvm.org/bugs/attachment.cgi?id=4289)
testcase

$ cat signal11.cpp 
class QObject;
class QGenericArgument
{
    static bool disconnect( QObject *sender,  char *signal,
                            QObject *receiver,  char *member);
    bool disconnect( char *signal = 0,
                            QObject *receiver = 0,  char *member = 0)
        { return disconnect(this, signal, receiver, member); }
}

$ clang++ -fsyntax-only signal11.cpp 
signal11.cpp:8:18: error: no matching member function for call to 'disconnect'
        { return disconnect(this, signal, receiver, member); }
                 ^~~~~~~~~~
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -fsyntax-only -disable-free -main-file-name
signal11.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -x c++ signal11.cpp 
1.    signal11.cpp:8:59: current parser token ')'
2.    signal11.cpp:2:1: parsing struct/union/class body 'QGenericArgument'
3.    signal11.cpp:8:9: parsing function body 'QGenericArgument::disconnect'
4.    signal11.cpp:8:9: in compound statement ('{}')
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)

-- 
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