On Jun 15, 2015, at 12:55 PM, Andres Tiraboschi
wrote:
>
> Hi, do you know where is the .exp file for the tests in
> .../gcc/testsuite/g++.dg/warn?
> I can't find it.
find srcdir -name \*.exp -print will show you all of them. You’ll discover
that a .exp file can run the entire tree under it.
2015-06-12 18:35 GMT-03:00 Joseph Myers :
> 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 nee
Hi, thanks for your answer. I was trying with warning_at this way
instead that I was doing before:
+ else if (TREE_CODE(init) == CALL_EXPR)
+{
+ tree fn = TREE_OPERAND(CALL_EXPR_FN(init), 0);
+ if (DECL_DECLARED_CONSTEXPR_P(fn) && warn_constexpr)
+ warning_at (DECL_SOURCE_L
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
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.
diff --git a/gcc/common.opt b/gcc/common.opt
index b49ac46..88374b1 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -5