This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57941] [c++11] confusing error message with invalid constexpr constructor in template struct
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 03 Nov 2014 10:31:29 +0000
- Subject: [Bug c++/57941] [c++11] confusing error message with invalid constexpr constructor in template struct
- Auto-submitted: auto-generated
- References: <bug-57941-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57941
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paolo.carlini at oracle dot com
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
In mainline we made progress on this issue (I should track down when and why):
after the "because" note we print:
57941.C:5:33: error: call to non-constexpr function âint a<T>::c() const [with
T = int]â
constexpr int b () { return c (); }