[LLVMbugs] [Bug 10781] New: dejagnu test fails to compile with clang g++.old-deja/g++.pt/friend13.C
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 26 14:25:02 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10781
Summary: dejagnu test fails to compile with clang
g++.old-deja/g++.pt/friend13.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 with g++ and edg based intel compiler
rkotler at ubuntu-rkotler:~/icpc$ /home/rkotler/build_llvm/install/bin/clang++
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:12:10:
error:
'i' is a private member of 'C<double>'
cv.i = 3;
^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:31:6:
note:
in instantiation of function template specialization
'S<int>::f<double>' requested here
si.f(3.0);
^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:24:7:
note:
implicitly declared private here
int i;
^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:12:10:
error:
'i' is a private member of 'C<char>'
cv.i = 3;
^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:33:6:
note:
in instantiation of function template specialization
'S<long>::f<char>' requested here
sl.f('c');
^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:24:7:
note:
implicitly declared private here
int i;
^
2 errors generated.
rkotler at ubuntu-rkotler:~/icpc$
--
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