Open
Description
Bugzilla Link | 11989 |
Version | 3.0 |
OS | Linux |
Reporter | LLVM Bugzilla Contributor |
CC | @DougGregor,@tkremenek |
Extended Description
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?