[Bug c++/35387] __PRETTY_FUNCTION__ produces inconsistent output

2008-02-28 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2008-02-28 17:07 --- No, bug 99 has specialization too: template double ch(dummy, dummy); template double ch(dummy, dummy<0>); template double ch(dummy<0>, dummy); Those are all specialization of the first one, not overlo

[Bug c++/35387] __PRETTY_FUNCTION__ produces inconsistent output

2008-02-28 Thread d dot frey at gmx dot de
--- Comment #6 from d dot frey at gmx dot de 2008-02-28 08:14 --- I looked at bug #99, but I am unsure whether this bug is really a dup of it. #99 is about overloads and occurs with user types, while this bug is about partial template specializations and occurs only with certain types fr

[Bug c++/35387] __PRETTY_FUNCTION__ produces inconsistent output

2008-02-27 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-02-27 22:45 --- This is most likely a dup of bug 99. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35387

[Bug c++/35387] __PRETTY_FUNCTION__ produces inconsistent output

2008-02-27 Thread d dot frey at gmx dot de
--- Comment #4 from d dot frey at gmx dot de 2008-02-27 21:58 --- More information: I checked out the trunk and checked it again. The bug is still present, but while testing it, I noticed that the problem does not occur with my own types, only with types from the standard library. Here'

[Bug c++/35387] __PRETTY_FUNCTION__ produces inconsistent output

2008-02-27 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2008-02-27 13:00 --- Confirmed. This is a diagnostics bug. (And perhaps a duplicate). Thanks for the report. If you would like to contribute a patch, please read http://gcc.gnu.org/contribute.html -- manu at gcc dot gnu dot org change

[Bug c++/35387] __PRETTY_FUNCTION__ produces inconsistent output

2008-02-27 Thread d dot frey at gmx dot de
--- Comment #2 from d dot frey at gmx dot de 2008-02-27 12:02 --- I understand where the names come from, but that doesn't make the message correct. Consider the specialization in the example program to use <_T2,_T1> (note the reversed order) and an instantiation with , the resulting mes

[Bug c++/35387] __PRETTY_FUNCTION__ produces inconsistent output

2008-02-27 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-02-27 09:35 --- It uses the names as in the std::pair template declaration, so you could argue this is correct. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35387