This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13546] New: c++ enum bug in gcc3.3.3
- From: "olh at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jan 2004 12:41:17 -0000
- Subject: [Bug c++/13546] New: c++ enum bug in gcc3.3.3
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
example works ok with 3.2 and 3.4, but not with 3.3.3:
kdebeta:~ $ g++ -v
Reading specs from /usr/lib/gcc-lib/powerpc-myownfoobared-linux/3.2.3/specs
Configured with: /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/configure --prefix=/usr --bindir=/usr/powerpc-myownfoobared-linux/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/powerpc-myownfoobared-linux/3.2.3/include --datadir=/usr/share/gcc-data/powerpc-myownfoobared-linux/3.2 --mandir=/usr/share/gcc-data/powerpc-myownfoobared-linux/3.2/man --infodir=/usr/share/gcc-data/powerpc-myownfoobared-linux/3.2/info --enable-shared --host=powerpc-myownfoobared-linux --target=powerpc-myownfoobared-linux --with-system-zlib --enable-languages=c,c++,ada,f77,objc --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/powerpc-myownfoobared-linux/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext
Thread model: posix
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
kdebeta:~ $ ~toolchain/gcc33/bin/g++ -v
Reading specs from /home/toolchain/gcc33/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.3/specs
Configured with: /home/toolchain/src/gcc-3_3-branch/configure --prefix=/home/toolchain/gcc33 --enable-languages=c,c++ --enable-__cxa_atexit --enable-threads --enable-nls
Thread model: posix
gcc version 3.3.3 20040101 (prerelease)
kdebeta:~ $ ~toolchain/gcc34/bin/g++ -v
Reading specs from /home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4.0/specs
Configured with: /home/toolchain/src/gcc-head/configure --prefix=/home/toolchain/gcc34 --enable-languages=c,c++ --enable-__cxa_atexit --enable-threads --enable-nls
Thread model: posix
gcc version 3.4.0 20040101 (experimental)
kdebeta:~ $ g++ -Wall -o x -c test.cpp
kdebeta:~ $ ~toolchain/gcc33/bin/g++ -Wall -o x -c test.cpp
test.cpp:9: error: conflicting types for `New'
test.cpp:2: error: previous declaration as `MeetingMsgFlag New'
kdebeta:~ $ ~toolchain/gcc34/bin/g++ -Wall -o x -c test.cpp
kdebeta:~ $
enum MeetingMsgFlag
{ Id = 0, End, New, Del, Mod_Text, Mod_Type, Mod_Opt, Play };
namespace KStdAction
{
enum StdAction {
ActionNone,
New, Open, OpenRecent, Save, SaveAs, Revert, Close,
Print, PrintPreview, Mail, Quit,
Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, Find, FindNext, FindPrev,
Replace,
ActualSize, FitToPage, FitToWidth, FitToHeight, ZoomIn, ZoomOut,
Zoom, Redisplay,
Up, Back, Forward, Home, Prior, Next, Goto, GotoPage, GotoLine,
FirstPage, LastPage,
AddBookmark, EditBookmarks,
Spelling,
ShowMenubar, ShowToolbar, ShowStatusbar,
SaveOptions, KeyBindings,
Preferences, ConfigureToolbars,
Help, HelpContents, WhatsThis, ReportBug, AboutApp, AboutKDE,
TipofDay,
ConfigureNotifications,
FullScreen,
Clear,
PasteText
};
}
--
Summary: c++ enum bug in gcc3.3.3
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: olh at suse dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-linux
GCC host triplet: powerpc-linux
GCC target triplet: powerpc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13546