[LLVMbugs] [Bug 6456] New: clang -fsyntax-only fails on something g++ accepts [4]

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 1 13:18:01 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6456

           Summary: clang -fsyntax-only fails on something g++ accepts [4]
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


pes delta$ cat locale-inst.cc
        namespace std __attribute__ ((__visibility__ ("default"))) {
         class locale   {
          class facet;
      };
         class locale::facet   {
      };
          struct ctype_base   {
       };
       }
         namespace std __attribute__ ((__visibility__ ("default"))) {
         template<typename _CharT>     class __ctype_abstract_base : public
locale::facet, public ctype_base     {
        };
          inline template class __ctype_abstract_base<char>;
        }

pes delta$ g++ -fsyntax-only locale-inst.cc && echo yes
yes

pes delta$ clang++ -fsyntax-only locale-inst.cc && echo yes
locale-inst.cc:13:18: error: expected unqualified-id
          inline template class __ctype_abstract_base<char>;
                 ^
1 diagnostic generated.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list