[Bug c++/35708] jump to label enters catch block

2008-04-11 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35708

[Bug c++/35708] jump to label enters catch block

2008-04-09 Thread jason at gcc dot gnu dot org
--- Comment #10 from jason at gcc dot gnu dot org 2008-04-09 20:10 --- Fixed for 4.3.1 and 4.4.0. Patch seems risky for 4.2 at this point. -- jason at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/35708] jump to label enters catch block

2008-04-09 Thread jason at gcc dot gnu dot org
--- Comment #9 from jason at gcc dot gnu dot org 2008-04-09 19:58 --- Subject: Bug 35708 Author: jason Date: Wed Apr 9 19:57:19 2008 New Revision: 134151 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134151 Log: PR c++/35708 * semantics.c (finish_compound_liter

[Bug c++/35708] jump to label enters catch block

2008-04-09 Thread jason at gcc dot gnu dot org
--- Comment #8 from jason at gcc dot gnu dot org 2008-04-09 16:16 --- Subject: Bug 35708 Author: jason Date: Wed Apr 9 16:15:53 2008 New Revision: 134146 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134146 Log: PR c++/35708 * semantics.c (finish_compound_liter

[Bug c++/35708] jump to label enters catch block

2008-03-29 Thread jason at gcc dot gnu dot org
--- Comment #7 from jason at gcc dot gnu dot org 2008-03-29 15:19 --- The bug is that the temporary object created by the C99 compound literal syntax doesn't have proper C++ temporary lifetime; the compiler treats it as living until the end of the block, so the goto seems to be skipping

[Bug c++/35708] jump to label enters catch block

2008-03-29 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

[Bug c++/35708] jump to label enters catch block

2008-03-29 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-03-29 10:56 --- Jason, can you have a look here? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/35708] jump to label enters catch block

2008-03-29 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2008-03-29 10:52 --- Here's a shorter testcase: struct object { int one_o; int allocstamp; }; int pgci_pointable (object obj); void foo(void); int main (int argc, char *argv[]) { if (pgci_pointable((object){7,100})) { bad_re

[Bug c++/35708] jump to label enters catch block

2008-03-28 Thread bruno at clisp dot org
--- Comment #4 from bruno at clisp dot org 2008-03-28 22:48 --- The bug also occurs with g++ 4.3.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35708

[Bug c++/35708] jump to label enters catch block

2008-03-28 Thread bruno at clisp dot org
--- Comment #3 from bruno at clisp dot org 2008-03-28 22:46 --- > you are entering a scope that has objects constructed. Can you point out the sections in the ISO C++ standard that say that an 'if' statement can create the scope for some objects? -- http://gcc.gnu.org/bugzilla/show

[Bug c++/35708] jump to label enters catch block

2008-03-26 Thread sds at gnu dot org
--- Comment #2 from sds at gnu dot org 2008-03-26 20:44 --- so? the objects are created, used and discarded on the fly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35708

[Bug c++/35708] jump to label enters catch block

2008-03-26 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-03-26 20:39 --- I think this is invalid, you are entering a scope that has objects constructed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35708