public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32112]  New: [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl#
@ 2007-05-27 21:54 reichelt at gcc dot gnu dot org
  2007-05-27 21:55 ` [Bug c++/32112] " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-05-27 21:54 UTC (permalink / raw)
  To: gcc-bugs

A garbled diagnostic is issued for the following invalid code snippet
since GCC 4.1.0:

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

template<typename T> void foo (A<&T::template>);
====================================================

bug.cc:3: error: '#'unbound_class_template' not supported by
dump_decl#<declaration error>' is not a template


-- 
           Summary: [4.1/4.2/4.3 regression] #'unbound_class_template' not
                    supported by 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=32112


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

* [Bug c++/32112] [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl#
  2007-05-27 21:54 [Bug c++/32112] New: [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl# reichelt at gcc dot gnu dot org
@ 2007-05-27 21:55 ` reichelt at gcc dot gnu dot org
  2007-05-27 22:00 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-05-27 21:55 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32112


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

* [Bug c++/32112] [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl#
  2007-05-27 21:54 [Bug c++/32112] New: [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl# reichelt at gcc dot gnu dot org
  2007-05-27 21:55 ` [Bug c++/32112] " reichelt at gcc dot gnu dot org
@ 2007-05-27 22:00 ` reichelt at gcc dot gnu dot org
  2007-06-29 18:35 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-05-27 22:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2007-05-27 21:59 -------
Oops, I hosed the last line of the testcase.
The testcase should read:

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

template<typename T> void foo (A<&T::template i>);
=======================================================

Btw, a slightly modified version causes two garbled diagnostics:

====================================================
template<typename> struct A;

template<typename T> void foo (A<&T::template i>);
====================================================

bug.cc:3: error: '#'unbound_class_template' not supported by
dump_decl#<declaration error>' is not a template
bug.cc:3: error: type/value mismatch at argument 1 in template parameter list
for 'template<class> struct A'
bug.cc:3: error:   expected a type, got '& T::#'unbound_class_template' not
supported by pp_cxx_unqualified_id#'


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32112


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

* [Bug c++/32112] [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl#
  2007-05-27 21:54 [Bug c++/32112] New: [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl# reichelt at gcc dot gnu dot org
  2007-05-27 21:55 ` [Bug c++/32112] " reichelt at gcc dot gnu dot org
  2007-05-27 22:00 ` reichelt at gcc dot gnu dot org
@ 2007-06-29 18:35 ` mmitchel at gcc dot gnu dot org
  2007-08-10  9:52 ` pcarlini at suse dot de
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-06-29 18:35 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32112


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

* [Bug c++/32112] [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl#
  2007-05-27 21:54 [Bug c++/32112] New: [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl# reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-06-29 18:35 ` mmitchel at gcc dot gnu dot org
@ 2007-08-10  9:52 ` pcarlini at suse dot de
  2007-08-17 20:47 ` paolo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2007-08-10  9:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pcarlini at suse dot de  2007-08-10 09:51 -------
Seems manageable...


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-08-10 09:51:55
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32112


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

* [Bug c++/32112] [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl#
  2007-05-27 21:54 [Bug c++/32112] New: [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl# reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-08-10  9:52 ` pcarlini at suse dot de
@ 2007-08-17 20:47 ` paolo at gcc dot gnu dot org
  2007-08-18 10:08 ` [Bug c++/32112] [4.1/4.2 " paolo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-08-17 20:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo at gcc dot gnu dot org  2007-08-17 20:47 -------
Subject: Bug 32112

Author: paolo
Date: Fri Aug 17 20:46:59 2007
New Revision: 127596

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127596
Log:
/cp
2007-08-17  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32112
        * error.c (dump_decl): Deal with UNBOUND_CLASS_TEMPLATE.
        * cxx-pretty-print.c (pp_cxx_unqualified_id): Likewise.

/testsuite
2007-08-17  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32112
        * g++.dg/template/error26.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/template/error26.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cxx-pretty-print.c
    trunk/gcc/cp/error.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32112


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

* [Bug c++/32112] [4.1/4.2 regression] #'unbound_class_template' not supported by dump_decl#
  2007-05-27 21:54 [Bug c++/32112] New: [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl# reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-08-18 10:08 ` [Bug c++/32112] [4.1/4.2 " paolo at gcc dot gnu dot org
@ 2007-08-18 10:08 ` paolo at gcc dot gnu dot org
  2007-08-18 10:09 ` pcarlini at suse dot de
  7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-08-18 10:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo at gcc dot gnu dot org  2007-08-18 10:08 -------
Subject: Bug 32112

Author: paolo
Date: Sat Aug 18 10:08:03 2007
New Revision: 127610

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127610
Log:
/cp
2007-08-18  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32112
        * error.c (dump_decl): Deal with UNBOUND_CLASS_TEMPLATE.
        * cxx-pretty-print.c (pp_cxx_unqualified_id): Likewise.

/testsuite
2007-08-18  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32112
        * g++.dg/template/error26.C: New.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/error26.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/cxx-pretty-print.c
    branches/gcc-4_1-branch/gcc/cp/error.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32112


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

* [Bug c++/32112] [4.1/4.2 regression] #'unbound_class_template' not supported by dump_decl#
  2007-05-27 21:54 [Bug c++/32112] New: [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl# reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-08-17 20:47 ` paolo at gcc dot gnu dot org
@ 2007-08-18 10:08 ` paolo at gcc dot gnu dot org
  2007-08-18 10:08 ` paolo at gcc dot gnu dot org
  2007-08-18 10:09 ` pcarlini at suse dot de
  7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-08-18 10:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo at gcc dot gnu dot org  2007-08-18 10:08 -------
Subject: Bug 32112

Author: paolo
Date: Sat Aug 18 10:07:42 2007
New Revision: 127609

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127609
Log:
/cp
2007-08-18  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32112
        * error.c (dump_decl): Deal with UNBOUND_CLASS_TEMPLATE.
        * cxx-pretty-print.c (pp_cxx_unqualified_id): Likewise.

/testsuite
2007-08-18  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32112
        * g++.dg/template/error26.C: New.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/error26.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/cxx-pretty-print.c
    branches/gcc-4_2-branch/gcc/cp/error.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32112


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

* [Bug c++/32112] [4.1/4.2 regression] #'unbound_class_template' not supported by dump_decl#
  2007-05-27 21:54 [Bug c++/32112] New: [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl# reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-08-18 10:08 ` paolo at gcc dot gnu dot org
@ 2007-08-18 10:09 ` pcarlini at suse dot de
  7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2007-08-18 10:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pcarlini at suse dot de  2007-08-18 10:09 -------
Fixed.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32112


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

end of thread, other threads:[~2007-08-18 10:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-27 21:54 [Bug c++/32112] New: [4.1/4.2/4.3 regression] #'unbound_class_template' not supported by dump_decl# reichelt at gcc dot gnu dot org
2007-05-27 21:55 ` [Bug c++/32112] " reichelt at gcc dot gnu dot org
2007-05-27 22:00 ` reichelt at gcc dot gnu dot org
2007-06-29 18:35 ` mmitchel at gcc dot gnu dot org
2007-08-10  9:52 ` pcarlini at suse dot de
2007-08-17 20:47 ` paolo at gcc dot gnu dot org
2007-08-18 10:08 ` [Bug c++/32112] [4.1/4.2 " paolo at gcc dot gnu dot org
2007-08-18 10:08 ` paolo at gcc dot gnu dot org
2007-08-18 10:09 ` pcarlini at suse dot de

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).