[Bug c++/40261] confusing diagnostic on ill-formed template definition

2017-02-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40261

Martin Sebor  changed:

   What|Removed |Added

   Last reconfirmed|2009-08-25 15:42:13 |2017-2-15
  Known to fail||4.4.0, 5.3.0, 6.3.0, 7.0

--- Comment #2 from Martin Sebor  ---
No change in GCC 7.  For reference, other compilers print:

Clang 5.0:
t.C:4:31: error: nested name specifier 'B::' for declaration does not refer
  into a class, class template or class template partial specialization
template  void B::foo () { }
~~^

EDG eccp 4.11:
"t.C", line 4: error: template argument list must match the parameter list
  template  void B::foo () { }
  ^
Oracle CC:
"t.C", line 4: Error: Cannot define member of undefined specialization "B".
1 Error(s) detected.

IBM XLC++:
"t.C", line 4.25: 1540-0708 (S) The template argument 2 does not match the
corresponding template parameter of "template struct B".

[Bug c++/40261] confusing diagnostic on ill-formed template definition

2009-08-25 Thread bangerth at gmail dot com


--- Comment #1 from bangerth at gmail dot com  2009-08-25 15:42 ---
Yes, this is confusing.


-- 

bangerth at gmail dot com changed:

   What|Removed |Added

 CC||bangerth at gmail dot com
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||diagnostic
   Last reconfirmed|-00-00 00:00:00 |2009-08-25 15:42:13
   date||


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