[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 146198] New: kdevelop 3.4.1 fails to compile with gcc 4.2:
From:       Adam Sampson <ats-kdebugs () offog ! org>
Date:       2007-05-31 12:15:47
Message-ID: 20070531141543.146198.ats-kdebugs () offog ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=146198         
           Summary: kdevelop 3.4.1 fails to compile with gcc 4.2: \
enum/class  name overlaps
           Product: kdevelop
           Version: 3.4.1
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs kdevelop org
        ReportedBy: ats-kdebugs offog org


Version:           3.4.1 (using KDE KDE 3.5.7KDE 1.2)
Installed from:    Compiled From SourcesCompiled From Sources
Compiler:          GCC 4.2.0 
OS:                Linux

In languages/cpp/simpletype.h, enum Repository is declared with a bunch of \
tag names that are the same as existing classes (such as CodeModel and \
Catalog). With older GCC this is fine, but with GCC 4.2 the tags shadow the \
classes when both definitions are included, so it fails to compile.

I've fixed it by adding a prefix to the enum tags; I'll attach the patch.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic