[Bug c++/51317] [C++0x] [DR 587] Wrong value category of conditional expression where lvalue operands differ only in cv-qualification
tsoae at mail dot ru
gcc-bugzilla@gcc.gnu.org
Mon Sep 10 17:17:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51317
Nikolka <tsoae at mail dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|4.7.0 |4.8.0
--- Comment #1 from Nikolka <tsoae at mail dot ru> 2012-09-10 17:16:46 UTC ---
The error still occurs on g++ v.4.7.2 20120908 (prerelease) and v.4.8.0
20120909 (experimental).
-4.7.2-------------------------------------------------------------
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=../target --enable-languages=c,c++
Thread model: posix
GNU C++ (GCC) version 4.7.2 20120908 (prerelease) (i686-pc-linux-gnu)
compiled by GNU C version 4.7.2 20120908 (prerelease), GMP version 5.0.2,
MPFR version 3.1.0, MPC version 0.8.2
COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-shared-libgcc' '-mtune=generic'
'-march=pentiumpro'
test.cpp:3:27: error: lvalue required as unary ‘&’ operand
-4.8.0-------------------------------------------------------------
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=../target --enable-languages=c,c++
Thread model: posix
GNU C++ (GCC) version 4.8.0 20120909 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 4.8.0 20120909 (experimental), GMP version 5.0.2,
MPFR version 3.1.0, MPC version 0.8.2
COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-shared-libgcc' '-mtune=generic'
'-march=pentiumpro'
test.cpp:3:27: error: lvalue required as unary ‘&’ operand
int const *p = &(1 ? x : y);
^
More information about the Gcc-bugs
mailing list