http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51148
Bug #: 51148 Summary: [C++0x] Unexpanded template param packs wrongly accepted in friend class declarations Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: ai.az...@gmail.com Created attachment 25831 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25831 Outputs by -v option and preprocessed source. GCC 4.7-20111112 with -std=c++11 wrongly accepts the following ill-formed code. =========================== template<typename... Types> struct S {}; template<typename... Types> struct T { friend class S<Types>; }; int main() {} ===========================