This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59980] Diagnostics relating to template-specialisations using enums.
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Aug 2016 12:26:18 +0000
- Subject: [Bug c++/59980] Diagnostics relating to template-specialisations using enums.
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-59980-4@http.gcc.gnu.org/bugzilla/>
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.