Launchpad has imported 4 comments from the remote bug at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56388.
If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.
On 2013-02-19T06:23:53+00:00 Omawarisan-bokudesu wrote:
g++ -std=c++11 rejects the following program:
int main()
{
bool /*const*/ condition = false;
[]{
try{}
catch(...){
if(condition){}
}
}();
}
If the condition variable is const, the compilation successes.
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/user/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/home/user/gcc-trunk
--disable-bootstrap --disable-multilib --enable-languages=c,c++,fortran
--with-gmp=/home/user/gcc-trunk/src/build/backends
--with-mpfr=/home/user/gcc-trunk/src/build/backends
--with-mpc=/home/user/gcc-trunk/src/build/backends
Thread model: posix
gcc version 4.8.0 20130219 (experimental) (GCC)
Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/1172951/comments/0
On 2013-02-19T09:23:34+00:00 Daniel-kruegler wrote:
The problem also exists for 4.7.2, so no regression. The diagnostics is
interesting:
7:9: error: '...' handler must be the last handler for its try block
[-fpermissive]
catch(...){
^
Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/1172951/comments/1
On 2013-04-11T21:52:36+00:00 Jason-gcc wrote:
It's a regression from 4.6.
Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/1172951/comments/2
On 2013-04-16T20:30:12+00:00 Jason-gcc wrote:
Fixed for 4.7.4/4.8.1/4.9.0.
Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/1172951/comments/3
** Changed in: gcc
Status: Unknown = Fix Released
** Changed in: gcc
Importance: Unknown = Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1172951
Title:
gcc 4.7.3-1ubuntu10 c++11 bogus errors (reduced, not reproducible
upstream)
To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1172951/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs