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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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@ubuntu-rkotler:~/icpc$ icpc
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.C
rkotler@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs