This is the mail archive of the gcc-bugs@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]

[Bug c++/54413] Option for turning off compiler extensions for -std=c++11 with respect to complex/fixed-point numbers missing


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54413

--- Comment #7 from Peter Sommerlad <peter.sommerlad at hsr dot ch> 2012-10-15 21:17:07 UTC ---
(In reply to comment #6)
> So what should these flags look like?
> 
> -fno-complex-literals
> -fno-fixed-literals
looks fine in principle.
> 
> Or should I use -W?
> 
> Should -std=c++11, etc. set these by default 
> (and you turn then back on with -fcomplex-literals, -ffixed-literals?)

I would happy with -ansi -std=c++11 work as I expected.

turning the extensions off with just -std=c++11 would not be what you want,
since existing code might rely on these extensions, only when we get -std=c++16
with my paper on UDL accepted, we should turn off these extensions, because
then the standard library will ship with the UDL suffixes identical or closely
to the GNU extensions.


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