[LLVMbugs] [Bug 10779] New: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/ttp22.c

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 26 14:11:23 PDT 2011


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

           Summary: dejagnu test fails to compiler with clang
                    g++.old-deja/g++.pt/ttp22.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


compiles fine with g++ and intel edg based compiler

/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.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/ttp22.C:13:55: note: 
      constrained by implicitly private inheritance here
template<template<class> class DD,class EE> class C : DD<EE>
                                                      ^~~~~~
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.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/ttp22.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.



rkotler at ubuntu-rkotler:~/icpc$ icpc
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.C
rkotler at ubuntu-rkotler:~/icpc$ g++
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.C

-- 
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