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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 1 07:28:11 PST 2010


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

           Summary: clang -fsyntax-only fails on something g++ accepts [2]
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            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
            Blocks: 6266


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

pes delta$ clang++ -fsyntax-only locale-inst.cc && echo yes
locale-inst.cc:27:95: error: redefinition of 'intl'
       template<typename _CharT, bool _Intl>     const bool
moneypunct_byname<_CharT, _Intl>::intl;
                                                                               
              ^
locale-inst.cc:29:22: note: in instantiation of static data member
'std::moneypunct_byname<char, 0>::intl' requested
      here
      template class moneypunct_byname<char, false>;
                     ^
locale-inst.cc:23:88: note: previous definition is here
       template<typename _CharT, bool _Intl>     const bool moneypunct<_CharT,
_Intl>::intl;
                                                                               
       ^
3 diagnostics 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