From-SVN: r23362
This commit is contained in:
Jason Merrill 1998-10-26 21:21:59 -05:00
parent ac0f1cd216
commit 21c0d0f5b2

View File

@ -1,6 +1,4 @@
// Build don't link:
// $7.1.2 disallows explicit on anything but declarations of
// constructors ... including friends.
class foo { public: foo(); };
class bar { public: friend explicit foo::foo(); };
class bar { public: friend explicit foo::foo(); }; // ERROR - explicit friend