[Bug c++/48993] [C++0x] segmentation fault when compiling this program with constexpr

2011-08-06 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48993

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Blocks||48892
 Resolution||FIXED
   Target Milestone|--- |4.6.2

--- Comment #4 from Jason Merrill jason at gcc dot gnu.org 2011-08-06 
22:22:53 UTC ---
Segfault fixed for 4.6.2; now GCC will give a sorry for the constructor
definition.  Actually fixing the compiler to accept the code will happen under
PR 48892.


[Bug c++/48993] [C++0x] segmentation fault when compiling this program with constexpr

2011-08-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48993

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||jason at gcc dot gnu.org
 AssignedTo|unassigned at gcc dot   |jason at gcc dot gnu.org
   |gnu.org |


[Bug c++/48993] [C++0x] segmentation fault when compiling this program with constexpr

2011-08-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48993

--- Comment #2 from Jason Merrill jason at gcc dot gnu.org 2011-08-06 
04:34:50 UTC ---
Author: jason
Date: Sat Aug  6 04:34:45 2011
New Revision: 177499

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=177499
Log:
PR c++/48993
* semantics.c (potential_constant_expression_1) [CALL_EXPR]: Sorry
on 'this' in a constructor.

Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-48089.C


[Bug c++/48993] [C++0x] segmentation fault when compiling this program with constexpr

2011-08-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48993

--- Comment #3 from Jason Merrill jason at gcc dot gnu.org 2011-08-06 
04:38:35 UTC ---
Author: jason
Date: Sat Aug  6 04:38:32 2011
New Revision: 177503

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=177503
Log:
PR c++/48993
* semantics.c (potential_constant_expression_1) [CALL_EXPR]: Sorry
on 'this' in a constructor.

Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-48089.C


[Bug c++/48993] [C++0x\ segmentation fault when compiling this program with constexpr

2011-07-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48993

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2011.07.24 20:22:49
Version|unknown |4.6.0
Summary|segmentation fault when |[C++0x\ segmentation fault
   |compiling this program with |when compiling this program
   |constexpr   |with constexpr
 Ever Confirmed|0   |1

--- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2011-07-24 
20:22:49 UTC ---
pinskia@gcc10:~/src/local$ ~/local-gcc/bin/gcc t.cc -std=c++0x 
t.cc:12:17:   in constexpr expansion of ‘s1.Stack::Stack((*(const Stack*)(
s)), 10)’
t.cc:12:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.

Still fails as of today on the trunk.