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: [C++ Patch] PR 51312


On 08/08/2014 01:04 PM, Paolo Carlini wrote:
-float d = { i };
+float d = { i };  // { dg-error "narrowing" }

No, this case is the entire point of -Wno-narrowing.

I was suggesting that we ignore -Wno-narrowing *for a constant value*, but i is not a constant-expression.

Jason


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