public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51230] New: [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type
@ 2011-11-19 21:48 reichelt at gcc dot gnu.org
  2011-11-19 21:49 ` [Bug c++/51230] " reichelt at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-19 21:48 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51230
           Summary: [4.7 Regression] Broken diagnostic:
                    'template_parm_index' not supported by dump_type
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org


Trunk produces a broken error message for the following invalid code snippet:

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

template<int N> void foo(A<N>, A<N>);

void bar()
{
  foo(A<0>(), A<1>());
}
==========================================

bug.cc: In function 'void bar()':
bug.cc:7:21: error: no matching function for call to 'foo(A<0>, A<1>)'
bug.cc:7:21: note: candidate is:
bug.cc:3:22: note: template<int N> void foo(A<N>, A<N>)
bug.cc:3:22: note:   template argument deduction/substitution failed:
bug.cc:7:21: note:   deduced conflicting types for parameter
'#'template_parm_index' not supported by dump_type#<type error>'
('#'integer_cst' not supported by dump_type#<type error>' and '#'integer_cst'
not supported by dump_type#<type error>')


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

* [Bug c++/51230] [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type
  2011-11-19 21:48 [Bug c++/51230] New: [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type reichelt at gcc dot gnu.org
@ 2011-11-19 21:49 ` reichelt at gcc dot gnu.org
  2011-11-20  0:36 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-19 21:49 UTC (permalink / raw)
  To: gcc-bugs

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

Volker Reichelt <reichelt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
   Target Milestone|---                         |4.7.0


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

* [Bug c++/51230] [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type
  2011-11-19 21:48 [Bug c++/51230] New: [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type reichelt at gcc dot gnu.org
  2011-11-19 21:49 ` [Bug c++/51230] " reichelt at gcc dot gnu.org
@ 2011-11-20  0:36 ` paolo.carlini at oracle dot com
  2011-11-20 22:41 ` paolo at gcc dot gnu.org
  2011-11-20 22:41 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-11-20  0:36 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-11-19
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com
     Ever Confirmed|0                           |1


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

* [Bug c++/51230] [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type
  2011-11-19 21:48 [Bug c++/51230] New: [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-11-20 22:41 ` paolo at gcc dot gnu.org
@ 2011-11-20 22:41 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-11-20 22:41 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-11-20 22:39:24 UTC ---
Fixed.


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

* [Bug c++/51230] [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type
  2011-11-19 21:48 [Bug c++/51230] New: [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type reichelt at gcc dot gnu.org
  2011-11-19 21:49 ` [Bug c++/51230] " reichelt at gcc dot gnu.org
  2011-11-20  0:36 ` paolo.carlini at oracle dot com
@ 2011-11-20 22:41 ` paolo at gcc dot gnu.org
  2011-11-20 22:41 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-11-20 22:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-11-20 22:37:56 UTC ---
Author: paolo
Date: Sun Nov 20 22:37:54 2011
New Revision: 181538

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181538
Log:
/cp
2011-11-20  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51230
    * pt.c (unify_inconsistency): Handle non-type parameters better.
    * error.c (dump_expr): Handle TEMPLATE_TEMPLATE_PARM.

/cp
2011-11-20  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51230
    * g++.dg/template/error46.C: New.


Added:
    trunk/gcc/testsuite/g++.dg/template/error46.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/error.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


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

end of thread, other threads:[~2011-11-20 22:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-19 21:48 [Bug c++/51230] New: [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type reichelt at gcc dot gnu.org
2011-11-19 21:49 ` [Bug c++/51230] " reichelt at gcc dot gnu.org
2011-11-20  0:36 ` paolo.carlini at oracle dot com
2011-11-20 22:41 ` paolo at gcc dot gnu.org
2011-11-20 22:41 ` paolo.carlini at oracle dot com

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