This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34859] g++ -D__STDC_LIMIT_MACROS -D__STDC_LIMIT_MACROS causes error



------- Comment #1 from peeterj at ca dot ibm dot com  2008-01-18 23:06 -------
I see the two places in the code that look like they are related:

./libcpp/macro.c:1698:  if (! ustrncmp (NODE_NAME (node), DSC ("__STDC_"))
./libcpp/macro.c:1699:      && ustrcmp (NODE_NAME (node), (const uchar *)
"__STDC_FORMAT_MACROS"))
./libcpp/directives.c:2158:      if (! ustrncmp (NODE_NAME (node), DSC
("__STDC_")))


The first of these excludes __STDC_FORMAT_MACROS (inttypes.h) so perhaps should
also do this for __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS of stdint.h
too?  If that's the case, perhaps these same exclusions should be in
directives.h too (since I don't know the code I'm only guessing).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34859


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]