http://llvm.org/bugs/show_bug.cgi?id=11989
Bug #: 11989
Summary: clang accepts friend that g++/Comeau reject
Product: clang
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
This code:
class D {
class E{
class F{};
friend void foo1(D::E::F& q);
};
friend void foo1(D::E::F& q);
};
void foo1(D::E::F& q) {}
int main(int argc, char** argv) { return 0; }
is accepted by clang but rejected by g++ and Comeau. Gnu says they are right to
reject (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52212), so I'm filing
it with you. One of you guys is right; perhaps you can get together and agree
who it is?
--
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