public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54413] New: Option for turning off compiler extensions for -std=c++11 with respect to complex/fixed-point numbers missing
@ 2012-08-30  8:19 p4spam at hispeed dot ch
  2012-08-30  9:11 ` [Bug c++/54413] " jakub at gcc dot gnu.org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: p4spam at hispeed dot ch @ 2012-08-30  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54413
           Summary: Option for turning off compiler extensions for
                    -std=c++11 with respect to complex/fixed-point numbers
                    missing
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: p4spam@hispeed.ch


All versions of g++ that support UDL operators should have such an option to
turn off GNU complex literals and fixed point literals extensions.

I am prototyping C++1x library extensions for user-defined literals. While it
is possible to turn off GCC's extensions for complex numbers for "old" C++ it
is impossible to combine the effects of -ansi with -std=c++11. Especially the
syntax extensions for complex numbers, e.g., 1.1i cannot be turned off and thus
do not allow testing of UDL operators for the purpose of creating
std::complex<> literals, such as

constexpr std::complex<double> operator"" i(long double d){
return std::complex<double>(0,d);
}

>From the fixed-point extension also number suffixes r and R are occupied.

More info at my proposal, 
http://wiki.hsr.ch/PeterSommerlad/files/N3402_UDLsuffixes.pdf

All versions of g++ that support UDL operators should have such an option to
turn off GNU complex literals and fixed point literals extensions.


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-11-14 13:21 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-30  8:19 [Bug c++/54413] New: Option for turning off compiler extensions for -std=c++11 with respect to complex/fixed-point numbers missing p4spam at hispeed dot ch
2012-08-30  9:11 ` [Bug c++/54413] " jakub at gcc dot gnu.org
2012-08-30  9:55 ` redi at gcc dot gnu.org
2012-08-30 10:04 ` jakub at gcc dot gnu.org
2012-10-01 16:52 ` paolo.carlini at oracle dot com
2012-10-01 18:47 ` 3dw4rd at verizon dot net
2012-10-15 21:08 ` 3dw4rd at verizon dot net
2012-10-15 21:17 ` peter.sommerlad at hsr dot ch
2012-10-15 21:19 ` redi at gcc dot gnu.org
2012-10-15 21:21 ` peter.sommerlad at hsr dot ch
2012-10-15 21:25 ` 3dw4rd at verizon dot net
2012-11-05  4:50 ` 3dw4rd at verizon dot net
2012-11-05  4:56 ` 3dw4rd at verizon dot net
2012-11-06 17:55 ` 3dw4rd at verizon dot net
2012-11-12  5:39 ` 3dw4rd at verizon dot net
2012-11-12  9:12 ` redi at gcc dot gnu.org
2012-11-12 17:48 ` 3dw4rd at verizon dot net
2012-11-12 18:30 ` redi at gcc dot gnu.org
2012-11-14 13:07 ` 3dw4rd at verizon dot net
2012-11-14 13:18 ` paolo.carlini at oracle dot com
2012-11-14 13:21 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).