[Bug c++/51148] New: [C++0x] Unexpanded template param packs wrongly accepted in friend class declarations
ai.azuma at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 16 01:58:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: ai.azuma@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()
{}
===========================
More information about the Gcc-bugs
mailing list