[Bug 1172951]
*** Bug 57995 has been marked as a duplicate of this bug. *** -- 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
[Bug 1172951]
*** Bug 57143 has been marked as a duplicate of this bug. *** -- 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
[Bug 1172951] Re: gcc 4.7.3-1ubuntu10 c++11 bogus errors (reduced, not reproducible upstream)
** Package changed: gcc-defaults (Ubuntu) = gcc-4.7 (Ubuntu) ** Changed in: gcc-4.7 (Ubuntu) Importance: Undecided = Medium ** Changed in: gcc-4.7 (Ubuntu) Status: New = Confirmed ** Bug watch added: GCC Bugzilla #56388 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56388 ** Also affects: gcc via http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56388 Importance: Unknown Status: Unknown -- 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
[Bug 1172951] Re: gcc 4.7.3-1ubuntu10 c++11 bogus errors (reduced, not reproducible upstream)
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
[Bug 1172951] [NEW] gcc 4.7.3-1ubuntu10 c++11 bogus errors (reduced, not reproducible upstream)
Public bug reported: This code: namespace NS { struct A { static void foo(int); templatetypename Func void func(Func f) { [](){ do { do { if (1) foo(0); } while(0); } while (0); }; } }; } void caller() { NS::A a; a.func([]{}); } Fails like this on Raring: redeclaration_bug.cc: In instantiation of 'NS::A::func(Func) [with Func = caller()::lambda()]::lambda()': redeclaration_bug.cc:14:11: required from 'struct NS::A::func(Func) [with Func = caller()::lambda()]::lambda()' redeclaration_bug.cc:10:5: required from 'void NS::A::func(Func) [with Func = caller()::lambda()]' redeclaration_bug.cc:26:15: required from here redeclaration_bug.cc:14:11: error: redeclaration of 'NS::A* const NS::A::func(Func) [with Func = caller()::lambda()]::lambda()::__this' redeclaration_bug.cc:14:11: note: previous declaration 'NS::A* const NS::A::func(Func) [with Func = caller()::lambda()]::lambda()::__this' redeclaration_bug.cc:14:11: error: redeclaration of 'NS::A* const this' redeclaration_bug.cc:14:11: error: 'NS::A* const this' previously declared here redeclaration_bug.cc: In instantiation of 'void NS::A::func(Func) [with Func = caller()::lambda()]': redeclaration_bug.cc:26:15: required from here redeclaration_bug.cc:10:5: error: too many initializers for 'NS::A::func(Func) [with Func = caller()::lambda()]::lambda()' It compiles fine on Fedora 18's gcc 4.7.2 as well as a version of the upstream 4.7 branch that I just built today. (The latter calls itself 4.7.4.) ** Affects: gcc-defaults (Ubuntu) Importance: Undecided Status: New -- 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/ubuntu/+source/gcc-defaults/+bug/1172951/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1172951] Re: gcc 4.7.3-1ubuntu10 c++11 bogus errors (reduced, not reproducible upstream)
I think this is c++/56388 upstream. r198010 on the 4.7 branch seems to fix it. -- 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/ubuntu/+source/gcc-defaults/+bug/1172951/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs