Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40603 - gcc 3.3.2-r6 problem
Summary: gcc 3.3.2-r6 problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-06 07:06 UTC by Simone Gotti (RETIRED)
Modified: 2004-02-08 20:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Gotti (RETIRED) gentoo-dev 2004-02-06 07:06:51 UTC
The gcc-3.3.2-r6 version has a problem that doesn't happened in the previous version.

I've noticed it compiling my project (kde-bluetooth) and another kde-bluetooth developer said that this problem was present in a debian gcc-3.3.3-pre version but in the latest debian gcc-3.3.3 version it's correct.

You can reproduce it compiling this simple program:

void x() { }
namespace N {
    enum E { x };
}
int main(int, char*[]) { }

it gives this error:

example.cpp:3: error: `x' redeclared as different kind of symbol
example.cpp:1: error: previous declaration of `void x()'


Like you can see the x defined in the enum isn't correlated with the "x" function. A similar error happens with KDE using the file:/usr/kde/3.2/include/knotifyclient.h header in a function that conflicts with the /usr/qt/3/include/qglobal.h.

I hope this will be corrected soon!
Bye!


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Richard Garand 2004-02-06 18:03:36 UTC
I've had this problem too, and just confirmed that it doesn't exist in gcc-3.3.2-r5. This could cause problems with a lot of KDE apps.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-06 21:42:53 UTC
Ill mask again.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-07 14:48:36 UTC
I get this btw:

--
gcc-test1.c:2: error: syntax error before "N"
gcc-test1.c:2: error: syntax error before '{' token
gcc-test1.c: In function `main':
gcc-test1.c:5: error: parameter name omitted
gcc-test1.c:5: error: parameter name omitted
--
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-07 15:05:51 UTC
Bleh, dont worry, its c++ after all ...
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-08 00:53:40 UTC
Ok, this have been fixed in CVS - I will do a -r7 for testing later on.
Comment 6 Simone Gotti (RETIRED) gentoo-dev 2004-02-08 04:01:49 UTC
Thanks!
Comment 7 Norberto Bensa 2004-02-08 08:26:28 UTC
Has this issue something to do with:

http://article.gmane.org/gmane.linux.gentoo.user/65111

?

Many thanks,
Norberto
Comment 8 Richard Garand 2004-02-08 09:57:36 UTC
Norberto, that looks like an unrelated problem.

By the way, this doesn't seem to be a bug in gcc, but a more strict compliance with the c++ standard (and from a post on the kde-bluetooth mailing list that I found before looking here, it seems to be in gcc-3.3.3+). Removing the feature from gcc will help in the short term, but everything that has this error will have to be fixed to work with versions of gcc later than 3.3.2.
Comment 9 Norberto Bensa 2004-02-08 12:27:28 UTC
Thanks, but JFYI I downgraded to gcc-3.3.2-r5 and kdemultimedia 3.2 emerged correctly.
Comment 10 Richard Garand 2004-02-08 13:33:28 UTC
Don't mind my last comment, I wasn't aware that the knotifyclient.h error involved a namespace.
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-08 20:08:00 UTC
-r7 fix it if anybody wants to take it for a spin ...
Comment 12 Richard Garand 2004-02-08 20:13:36 UTC
I tested this earlier; it works for me.