[LLVMbugs] [Bug 6369] New: Assertion failed: (Name.isIdentifier() && "Name is not a simple identifier")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 21 12:25:16 PST 2010


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

           Summary: Assertion failed: (Name.isIdentifier() && "Name is not
                    a simple identifier")
           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
   Estimated Hours: 0.0


Assertion fails when compiling this code, only if DEBUG is defined in the
environment.
Tested with r96751.

$ cat assert.cc
class Encoding {
    char method()  { return 0; }
    virtual ~Encoding();
} fe;

void foo()
{
    char bar = fe.method();
}

$ DEBUG= clang assert.cc
vtable Encoding
building entries for base Encoding most derived Encoding
 doing vbase entries for Encoding most derived Encoding
 doing vcall entries for Encoding most derived Encoding
Assertion failed: (Name.isIdentifier() && "Name is not a simple identifier"),
function getNameAsCString, file
/projects/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Decl.h, line
123.
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name assert.cc
-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 -o /tmp/cc-CTNdKn.s -x c++ assert.cc 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.    assert.cc:1:7: Generating code for declaration 'Encoding::Encoding'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

-- 
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the llvm-bugs mailing list