[Bug c++/59980] Diagnostics relating to template-specialisations using enums.
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 18 12:26:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59980
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-08-18
CC| |manu at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Clang prints:
prog.cc:19:9: error: no member named 'fn' in 's1<e1::t2>'; did you mean
's1<t1>::fn'?
s1<t2>::fn(); // Causes an error to be emitted that I'd like to
modify the format of.
^~~~~~~~~~
s1<t1>::fn
prog.cc:8:21: note: 's1<t1>::fn' declared here
static void fn() {}
^
prog.cc:21:9: error: no member named 'fn' in 's2<e2::t4>'; did you mean
's2<e2::t3>::fn'?
s2<e2::t4>::fn(); // Causes an error to be emitted that I'd like
to modify the format of.
^~~~~~~~~~~~~~
s2<e2::t3>::fn
prog.cc:14:21: note: 's2<e2::t3>::fn' declared here
static void fn() {}
^
It should be possible to do this in g++ nowadays.
More information about the Gcc-bugs
mailing list