[LLVMbugs] [Bug 11989] New: clang accepts friend that g++/Comeau reject
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Feb 12 09:18:54 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: ivan at ootbcomp.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list