Bug 159445 - gcc 4.0.0-9 fails with C++ errors where 4.0.0-8 succeeds
gcc 4.0.0-9 fails with C++ errors where 4.0.0-8 succeeds
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
rawhide
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-02 14:12 EDT by Michael Schwendt
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-02 16:57:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
gzipped preprocessed amarok/src/collectiondb.ii (271.27 KB, application/octet-stream)
2005-06-02 15:06 EDT, Michael Schwendt
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 1016 None None None Never

  None (edit)
Description Michael Schwendt 2005-06-02 14:12:15 EDT
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 14:15:08 EDT
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 15:06:20 EDT
Created attachment 115104 [details]
gzipped preprocessed amarok/src/collectiondb.ii
Comment 3 Jakub Jelinek 2005-06-02 16:57:32 EDT
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 18:00:49 EDT
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.