public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13546] New: c++ enum bug in gcc3.3.3
@ 2004-01-02 12:41 olh at suse dot de
  2004-01-02 13:28 ` [Bug c++/13546] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: olh at suse dot de @ 2004-01-02 12:41 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/13546] c++ enum bug in gcc3.3.3
  2004-01-02 12:41 [Bug c++/13546] New: c++ enum bug in gcc3.3.3 olh at suse dot de
@ 2004-01-02 13:28 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-02 13:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-02 13:27 -------
This is a dup of bug 13544 which was just filed.

*** This bug has been marked as a duplicate of 13544 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-02 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-02 12:41 [Bug c++/13546] New: c++ enum bug in gcc3.3.3 olh at suse dot de
2004-01-02 13:28 ` [Bug c++/13546] " 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).