forked from qt-creator/qt-creator
Compile the C++ parser library with Sun CC 5.9.
Things you mustn't do: 1) end an enum with a comma 2) #include <cxxxx> and not use std:: 3) use anonymous structures All three things are invalid C++. Anonymous structures inside anonymous unions are allowed by GCC, but that doesn't mean it's valid.
This commit is contained in:
@@ -114,7 +114,7 @@ const char *Token::name(int kind)
|
||||
|
||||
const char *Token::spell() const
|
||||
{
|
||||
switch (kind) {
|
||||
switch (f.kind) {
|
||||
case T_IDENTIFIER:
|
||||
return identifier->chars();
|
||||
|
||||
@@ -128,7 +128,7 @@ const char *Token::spell() const
|
||||
return literal->chars();
|
||||
|
||||
default:
|
||||
return token_names[kind];
|
||||
return token_names[f.kind];
|
||||
} // switch
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user