From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9085 invoked by alias); 27 Aug 2007 21:51:25 -0000 Received: (qmail 8019 invoked by uid 48); 27 Aug 2007 21:51:04 -0000 Date: Mon, 27 Aug 2007 21:51:00 -0000 Subject: [Bug c++/33210] New: Broken diagnostics: 'bound_template_template_parm' not supported by pp_cxx_unqualified_id/dump_decl X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg01992.txt.bz2 The following invalid code snippet triggers a broken diagnostic since GCC 3.4.2: ====================================================================== template struct A; template class B> A::x> operator() (); ====================================================================== bug.cc:3: error: `A<#`bound_template_template_parm' not supported by pp_cxx_unqualified_id#::x> operator()()' must be a nonstatic member function A similar error message is generated by the following code snippet since GCC 3.4.0: ====================================================================== template class T> void foo(int, T::x); ====================================================================== bug.cc:1: error: `#`bound_template_template_parm' not supported by dump_decl#::x' is not a type bug.cc:1: error: ISO C++ forbids declaration of `parameter' with no type -- Summary: Broken diagnostics: 'bound_template_template_parm' not supported by pp_cxx_unqualified_id/dump_decl Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: diagnostic, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33210