-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APInt.h:216: error: expected ‘,’ or ‘...’ before numeric constant #2301
Comments
assigned to @tkremenek |
Environment: $ g++ -v $ uname -a |
This looks like a potential macro conflict in preprocessed source for FileParser.cpp. I have committed r46193 which provides a hack to hopefully fix this problem ('ID' is renamed to 'id'): http://llvm.org/viewvc/llvm-project?rev=46193&view=rev Edwin: Can you confirm that this fixes the problem? Also, what would be helpful is if you could attach the preprocessed source for FileParser.cpp. Having a name conflict on something like the word 'ID' seems like badness to me, making believe that the root cause of this problem is elsewhere. |
preprocessed source, before updating from SVN |
Ehrm, I was wrong, ID got expanded to 278. |
Thanks. It looks like ID is an enum value in the generated output of bison. Does the build work for you now? |
Yes, utils/TableGen builds now. The rest is still compiling, but I suppose those will be ok too. |
Extended Description
Build fails for svn r46191.
make[2]: Entering directory
/home/edwin/llvm-svn/llvm/utils/TableGen' llvm[2]: Compiling FileParser.cpp for Release build In file included from /home/edwin/llvm-svn/llvm/include/llvm/ADT/APFloat.h:105, from /home/edwin/llvm-svn/llvm/include/llvm/ADT/StringExtras.h:19, from /home/edwin/llvm-svn/llvm/utils/TableGen/FileParser.y:17: /home/edwin/llvm-svn/llvm/include/llvm/ADT/APInt.h:216: error: expected ‘,’ or ‘...’ before numeric constant make[2]: *** [/home/edwin/llvm-svn/llvm/utils/TableGen/Release/FileParser.o] Error 1 make[2]: Leaving directory
/home/edwin/llvm-svn/llvm/utils/TableGen'make[1]: *** [TableGen/.makeall] Error 2
make[1]: Leaving directory `/home/edwin/llvm-svn/llvm/utils'
make: *** [all] Error 1
That line contains:
/// Profile - Used to insert APInt objects, or objects that contain APInt
/// objects, into FoldingSets.
void Profile(FoldingSetNodeID& ID) const;
The text was updated successfully, but these errors were encountered: