Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 159445 - gcc 4.0.0-9 fails with C++ errors where 4.0.0-8 succeeds
Summary: gcc 4.0.0-9 fails with C++ errors where 4.0.0-8 succeeds
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-06-02 18:12 UTC by Michael Schwendt
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-06-02 20:57:32 UTC


Attachments (Terms of Use)
gzipped preprocessed amarok/src/collectiondb.ii (deleted)
2005-06-02 19:06 UTC, Michael Schwendt
no flags Details


Links
System ID Priority Status Summary Last Updated
GNU Compiler Collection 1016 None None None Never

Description Michael Schwendt 2005-06-02 18:12:15 UTC
gcc-4.0.0-9 fails with many C++ errors for "amarok" from Fedora Extras CVS (FC-4
branch, tag amarok-1_2_4-5_fc4) which compiles fine with gcc-4.0.0-8.
Installation is Fedora Core 4 Development (Rawhide) with only gcc/libstdc++ and
a few dependencies updated for gcc-4.0.0-9.

Build log for last version that built fine:
http://extras64.linux.duke.edu/failed/4/amarok/1.2.4-3/i386/amarok-1.2.4-3.rpm.log

A few hours later it failed to build:
http://extras64.linux.duke.edu/failed/4/amarok/1.2.4-4/i386/amarok-1.2.4-4.failure.log

When I saw the new build failure, I thought that the Fedora Extras buildsys had
updated to gcc-4.0.0-9. Indeed, I'm able to reproduce the compilation failures
with gcc-4.0.0-9 and a local machine.

Comment 1 Jakub Jelinek 2005-06-02 18:15:08 UTC
Can you please attach preprocessed source of one of the files that used to
compile and now do not?
Thanks.

Comment 2 Michael Schwendt 2005-06-02 19:06:20 UTC
Created attachment 115104 [details]
gzipped preprocessed amarok/src/collectiondb.ii

Comment 3 Jakub Jelinek 2005-06-02 20:57:32 UTC
That looks to be buggy amarok source code.  Say
friend class CollectionView;
in a class does not serve as a forward class declaration.  Either class
CollectionView must be defined first, or there needs to be
class CollectionView; somewhere above it.
See http://gcc.gnu.org/PR1016 for details.

Comment 4 Michael Schwendt 2005-06-02 22:00:49 UTC
It's news to me that apparently it was actually possible to compile broken C++
code like that for some time. [Stroustrup clearly says that a friend declaration
does not introduce a name into enclosing scope.]

*sigh*

Thanks.



Note You need to log in before you can comment on or make changes to this bug.