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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


compiles with g++ and edg based intel compiler


rkotler@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@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to