This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50096] GCC 4.X doesn't compile Clang on Sparc Solaris
- From: "javpicorel at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Aug 2011 09:36:53 +0000
- Subject: [Bug c++/50096] GCC 4.X doesn't compile Clang on Sparc Solaris
- Auto-submitted: auto-generated
- References: <bug-50096-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50096
--- Comment #2 from Javier <javpicorel at gmail dot com> 2011-08-16 09:36:53 UTC ---
(In reply to comment #1)
> please read the bug reporting instructions and provide the information
> requested:
> http://gcc.gnu.org/bugs/ - specifically provide preprocessed source, not a URL.
> Ideally reduce the code to the minimum example demonstrating the problem.
>
> To me the error looks like it would be produced by this incorrect code:
>
> namespace clang
> {
>
> struct SourceRange { };
>
> struct Stmt { };
>
> struct AsmStmt : Stmt {
> SourceRange f() const;
> };
>
> SourceRange (clang::Stmt::*p)() = &AsmStmt::f;
>
> }
Sorry about that I forgot to read them.
This code do compile on x86 so this has to be some c++ front-end bug, that is
what clang guys told me.