[Bug 67019] New: Unable to build with gcc 3.3.1
Chris Thompson
chris at hypocrite.org
Sat Nov 1 22:37:16 UTC 2003
------- 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=67019
Summary: Unable to build with gcc 3.3.1
Product: kdevelop
Version: CVS
Platform: Mandrake RPMs
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdevelop-devel at kdevelop.org
ReportedBy: chris at hypocrite.org
Version: CVS (using KDE KDE 3.1.3)
Installed from: Mandrake RPMs
Compiler: gcc 3.3.1 Default with Mandrake 9.2
OS: Linux
I am unable to compile KDevelop from cvs. I reported this to the mailing list several days ago and got confirmation but no help. I get hundreds of errors compiling the AdaParser.cpp file in languages/ada. These are all along the lines of:
AdaParser.cpp:34: error: invalid static_cast from type `antlr::RefAST' to type `RefAdaAST'
I get similar error messages in other files, including files dealing with the Pascal language. The problem seems to stem from the static cast from ASTRefCount<AST> to ASTRefCount<AdaAST> which is, I believe, not allowed under C++ standards. I could be wrong on that. Gcc 3.3.x has better support for C++ than 3.2 does which is why this error does not appear with an older version of the compiler. I will attach a patch which uses C-style casts instead of C++-style casts which at least makes the code compile. HOWEVER, I believe the cast is invalid and therefore the results (either with the patch or, with an older version of gcc, without the patch) are undefined.
More information about the KDevelop-devel
mailing list