This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PAtch] More C++11 and C++14 constexpr work
- From: Jason Merrill <jason at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 09 Oct 2014 23:15:18 -0400
- Subject: Re: [C++ PAtch] More C++11 and C++14 constexpr work
- Authentication-results: sourceware.org; auth=none
- References: <543594DA dot 1000304 at oracle dot com> <54368E33 dot 40002 at redhat dot com> <5436925D dot 1080105 at oracle dot com> <54369924 dot 6000401 at redhat dot com> <5436A69F dot 5040509 at oracle dot com>
On 10/09/2014 11:15 AM, Paolo Carlini wrote:
I noticed today that given the actual C++11 the error messages we provide:
"constexpr constructor does not have empty body"
and:
"body of constexpr function âXXXâ not a return-statement"
are rather outdated and misleading. In principle we should probably also
provide more fine grained error messages, but if you have suggestions
for less misleading catch all, I volunteer to do the change and adjust
the testcases...
I don't know that there's much room for improvement in a catch-all
message, though I'm open to suggestions. Better to give fine grained
errors, as you say.
Also, I have been thinking that it would probably make sense to move
constexpr-related code to a separate cp/constexpr.c: what do you think?
Yes, I've been thinking about that, too.
Jason