[LLVMbugs] [Bug 10780] New: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/memclass5.C

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 26 14:20:37 PDT 2011


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

           Summary: dejagnu test fails to compiler with clang
                    g++.old-deja/g++.pt/memclass5.C
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rkotler at mips.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7155)
 --> (http://llvm.org/bugs/attachment.cgi?id=7155)
g++.old-deja/g++.pt/memclass5.C

Compiles with g++ and intel compiler with edg front end


/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C:15:27:
error: 
      typename specifier refers to non-type member 'B' in 'A<int>'
  b.A<T>::template B<U>::~B();
                          ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C:22:3:
note: 
      in instantiation of function template specialization 'f<int, char>'
      requested here
  f<int, char>();
  ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C:3:29:
note: 
      referenced member 'B' is declared here
  template <class U> struct B {
                            ^
1 error 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