"friends can only be classes or functions">;
def err_friend_is_member : Error<
"friends cannot be members of the declaring class">;
-def extwarn_friend_inner_class : ExtWarn<
+def ext_friend_inner_class : Extension<
"C++ 98 does not allow inner classes as friends">;
def err_unelaborated_friend_type : Error<
"must specify '%select{class|union}0' in a friend "
// Also, definitions currently get treated in a way that causes
// this error, so only report it if we didn't see a definition.
else if (RD->getDeclContext() == CurContext &&
- !(getLangOptions().CPlusPlus0x || getLangOptions().GNUMode))
- Diag(DS.getFriendSpecLoc(), diag::extwarn_friend_inner_class);
+ !getLangOptions().CPlusPlus0x)
+ Diag(DS.getFriendSpecLoc(), diag::ext_friend_inner_class);
return DeclPtrTy::make(RD);
}