This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34859] g++ -D__STDC_LIMIT_MACROS -D__STDC_LIMIT_MACROS causes error
- From: "peeterj at ca dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2008 23:06:04 -0000
- Subject: [Bug c++/34859] g++ -D__STDC_LIMIT_MACROS -D__STDC_LIMIT_MACROS causes error
- References: <bug-34859-12838@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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