[Bug c++/55801] ICE with thread_local after ill-formed forward declaration

2013-01-09 Thread paolo at gcc dot gnu.org


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



--- Comment #3 from paolo at gcc dot gnu.org paolo at gcc dot gnu.org 
2013-01-09 14:43:59 UTC ---

Author: paolo

Date: Wed Jan  9 14:43:50 2013

New Revision: 195050



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=195050

Log:

/cp

2013-01-09  Paolo Carlini  paolo.carl...@oracle.com



PR c++/55801

* decl2.c (var_needs_tls_wrapper): Return false when error_operand_p

of the argument is true.



/testsuite

2013-01-09  Paolo Carlini  paolo.carl...@oracle.com



PR c++/55801

* g++.dg/tls/thread_local-ice.C: New.



Added:

trunk/gcc/testsuite/g++.dg/tls/thread_local-ice.C

Modified:

trunk/gcc/cp/ChangeLog

trunk/gcc/cp/decl2.c

trunk/gcc/testsuite/ChangeLog


[Bug c++/55801] ICE with thread_local after ill-formed forward declaration

2013-01-08 Thread paolo.carlini at oracle dot com


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



Paolo Carlini paolo.carlini at oracle dot com changed:



   What|Removed |Added



 Status|NEW |ASSIGNED

 AssignedTo|unassigned at gcc dot   |paolo.carlini at oracle dot

   |gnu.org |com



--- Comment #1 from Paolo Carlini paolo.carlini at oracle dot com 2013-01-08 
10:22:30 UTC ---

On it.


[Bug c++/55801] ICE with thread_local after ill-formed forward declaration

2013-01-08 Thread vlukas at gmx dot de


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



--- Comment #2 from vlukas at gmx dot de 2013-01-08 10:46:55 UTC ---

Thank you for working on this. Strangely, I just tested this again and could

remove one line from my testcase:



class C;

thread_local C O, O2 = O;

--

The two lines above produce an ICE too. The line class ::C; was removed, it

is not necessary for the ICE to occur. I thought I had tested this back in

december already.



This means that the title of this PR should get changed, otherwise it is

misleading.


[Bug c++/55801] ICE with thread_local after ill-formed forward declaration

2013-01-07 Thread paolo.carlini at oracle dot com


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



Paolo Carlini paolo.carlini at oracle dot com changed:



   What|Removed |Added



 Status|UNCONFIRMED |NEW

   Last reconfirmed||2013-01-07

 Ever Confirmed|0   |1