public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33210]  New: Broken diagnostics: 'bound_template_template_parm' not supported by pp_cxx_unqualified_id/dump_decl
@ 2007-08-27 21:51 reichelt at gcc dot gnu dot org
  2007-08-27 21:51 ` [Bug c++/33210] [4.1/4.2/4.3 regression] " reichelt at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-08-27 21:51 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers a broken diagnostic since GCC
3.4.2:

======================================================================
template<int> struct A;

template<template<typename> class B> A<B<int>::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<template<typename> class T> void foo(int, T<int>::x);
======================================================================

bug.cc:1: error: `#`bound_template_template_parm' not supported by
dump_decl#<declaration error>::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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-07-04 16:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-27 21:51 [Bug c++/33210] New: Broken diagnostics: 'bound_template_template_parm' not supported by pp_cxx_unqualified_id/dump_decl reichelt at gcc dot gnu dot org
2007-08-27 21:51 ` [Bug c++/33210] [4.1/4.2/4.3 regression] " reichelt at gcc dot gnu dot org
2007-08-28 17:15 ` pcarlini at suse dot de
2007-08-28 18:10 ` [Bug c++/33210] [4.1/4.2/4.3 Regression] " pcarlini at suse dot de
2007-08-29  6:55 ` reichelt at gcc dot gnu dot org
2007-08-31 10:32 ` pcarlini at suse dot de
2007-08-31 11:39 ` paolo at gcc dot gnu dot org
2007-08-31 11:41 ` [Bug c++/33210] [4.1/4.2 " pcarlini at suse dot de
2007-09-05  1:10 ` mmitchel at gcc dot gnu dot org
2007-09-05 10:40 ` paolo at gcc dot gnu dot org
2007-09-05 10:41 ` [Bug c++/33210] [4.1 " pcarlini at suse dot de
2008-07-04 16:12 ` jsm28 at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).