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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 25 20:47:32 PDT 2011


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

           Summary: dejagnu test fails to compiler with clang
                    g++.old-deja/g++.pt/ttp23.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=7142)
 --> (http://llvm.org/bugs/attachment.cgi?id=7142)
g++.old-deja/g++.pt/ttp23.C

compiles fine with g++ and intel EDG based compiler

rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp23.C
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp23.C:27:22: error: 
      'D' is a private member of 'D<int>'
                int f() { return C<D,int>::f(); }
                                   ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp23.C:13:53: note: 
      constrained by implicitly private inheritance here
template<template<class> class E,class D> class C : E<D>
                                                    ^~~~
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp23.C:2:25: note: 
      member is declared here
template<class T> class D
                        ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp23.C:27:22: error: 
      template argument for template template parameter must be a class
template
                int f() { return C<D,int>::f(); }
                                   ^
2 errors 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