This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Adding warning for constexpr's


On Fri, 12 Jun 2015, Andres Tiraboschi wrote:

> Hi, this patch is for adding a warning when a constexpr cannot be evaluated at compile time.
> This is a single case:
> type var = fun(args...), with fun declared as a constexpr.

All options need documenting in invoke.texi.  All diagnostics need 
testcases added to the testsuite.  C++-specific options go in c.opt and 
should be listed as C++ ObjC++, not Common.  All new diagnostics should 
use warning_at etc. with explicit locations passed, unless there is some 
strong reason it's hard to get the relevant location when the warning is 
given.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]