public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/17130] New: identifier major macro expanded into gnu_dev_major
@ 2004-08-21 14:17 attardi at di dot unipi dot it
2004-08-21 14:36 ` [Bug preprocessor/17130] " pcarlini at suse dot de
2004-08-21 15:23 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: attardi at di dot unipi dot it @ 2004-08-21 14:17 UTC (permalink / raw)
To: gcc-bugs
Compiling this program
#include <fstream>
struct Header {
int major;
Header(int mj) :
major(mj) { }
};
you get:
gcc -v -save-temps -c foo.cc
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-
checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/cc1plus -E -D__GNUG__=3 -quiet -v -
D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -D_GNU_SOURCE foo.cc
foo.ii
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/3.3.2
/usr/include/c++/3.3.2/i386-redhat-linux
/usr/include/c++/3.3.2/backward
/usr/local/include
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/cc1plus -fpreprocessed foo.ii -
quiet -dumpbase foo.cc -auxbase foo -version -o foo.s
GNU C++ version 3.3.2 20031022 (Red Hat Linux 3.3.2-1) (i386-redhat-linux)
compiled by GNU C version 3.3.2 20031022 (Red Hat Linux 3.3.2-1).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=129160
foo.cc: In constructor `Header::Header(int)':
foo.cc:7: error: class `Header' does not have any field named `gnu_dev_major'
If you rename major to anything else (except minor ;-), it works.
--
Summary: identifier major macro expanded into gnu_dev_major
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: attardi at di dot unipi dot it
CC: attardi at di dot unipi dot it,gcc-bugs at gcc dot gnu
dot org
GCC build triplet: gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17130
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug preprocessor/17130] identifier major macro expanded into gnu_dev_major
2004-08-21 14:17 [Bug preprocessor/17130] New: identifier major macro expanded into gnu_dev_major attardi at di dot unipi dot it
@ 2004-08-21 14:36 ` pcarlini at suse dot de
2004-08-21 15:23 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pcarlini at suse dot de @ 2004-08-21 14:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-08-21 14:36 -------
Comes from glibc sys/sysmacros.h: seems hard to fix...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17130
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug preprocessor/17130] identifier major macro expanded into gnu_dev_major
2004-08-21 14:17 [Bug preprocessor/17130] New: identifier major macro expanded into gnu_dev_major attardi at di dot unipi dot it
2004-08-21 14:36 ` [Bug preprocessor/17130] " pcarlini at suse dot de
@ 2004-08-21 15:23 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-21 15:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-21 15:23 -------
Again not our bug, report this to glibc.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17130
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-21 15:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-21 14:17 [Bug preprocessor/17130] New: identifier major macro expanded into gnu_dev_major attardi at di dot unipi dot it
2004-08-21 14:36 ` [Bug preprocessor/17130] " pcarlini at suse dot de
2004-08-21 15:23 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).