public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51367] New: [4.7 Regression] Broken diagnostic: 'pointer_type' not supported by dump_expr
@ 2011-11-30 21:33 reichelt at gcc dot gnu.org
  2011-11-30 21:41 ` [Bug c++/51367] " 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-30 21:33 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51367
           Summary: [4.7 Regression] Broken diagnostic: 'pointer_type' not
                    supported by dump_expr
    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 diagnostic for the following code snippet:

========================================
template<typename T> void foo(T, T);

void bar(void* p)
{
  foo(0,p);
}
========================================

bug.cc: In function 'void bar(void*)':
bug.cc:5:10: error: no matching function for call to 'foo(int, void*&)'
bug.cc:5:10: note: candidate is:
bug.cc:1:27: note: template<class T> void foo(T, T)
bug.cc:1:27: note:   template argument deduction/substitution failed:
bug.cc:5:10: note:   conflicting deductions for parameter 'T' ('int' and
'#'pointer_type' not supported by dump_expr#<expression error>')


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

end of thread, other threads:[~2011-12-01  9:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-30 21:33 [Bug c++/51367] New: [4.7 Regression] Broken diagnostic: 'pointer_type' not supported by dump_expr reichelt at gcc dot gnu.org
2011-11-30 21:41 ` [Bug c++/51367] " reichelt at gcc dot gnu.org
2011-11-30 22:01 ` paolo.carlini at oracle dot com
2011-12-01  9:35 ` paolo at gcc dot gnu.org
2011-12-01  9:36 ` 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).