public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48993] New: segmentation fault when compiling this program with constexpr
@ 2011-05-13 22:33 akrzemi1 at gmail dot com
2011-07-24 20:23 ` [Bug c++/48993] [C++0x\ " pinskia at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: akrzemi1 at gmail dot com @ 2011-05-13 22:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48993
Summary: segmentation fault when compiling this program with
constexpr
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: akrzemi1@gmail.com
Created attachment 24245
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24245
source code
linux version (uname -a):
Linux localhost.localdomain 2.6.38.2-9.fc15.i686.PAE #1 SMP Wed Mar 30 16:47:28
UTC 2011 i686 i686 i386 GNU/Linux
gcc version 4.6.0 20110428 (Red Hat 4.6.0-6) (GCC)
(this is the default that was shipped with the beta version of fedora 15)
I compile the attached file using command:
g++ bug.cpp -std=c++0x
The response I get is:
bug.cpp:12:17: in constexpr expansion of ‘s1.Stack::Stack((*(const Stack*)(&
s)), 10)’
bug.cpp:12:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccIWdWoz.out file, please attach this to
your bugreport.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48993] [C++0x\ segmentation fault when compiling this program with constexpr
2011-05-13 22:33 [Bug c++/48993] New: segmentation fault when compiling this program with constexpr akrzemi1 at gmail dot com
@ 2011-07-24 20:23 ` pinskia at gcc dot gnu.org
2011-08-05 21:59 ` [Bug c++/48993] [C++0x] " jason at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-07-24 20:23 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48993] [C++0x] segmentation fault when compiling this program with constexpr
2011-05-13 22:33 [Bug c++/48993] New: segmentation fault when compiling this program with constexpr akrzemi1 at gmail dot com
2011-07-24 20:23 ` [Bug c++/48993] [C++0x\ " pinskia at gcc dot gnu.org
@ 2011-08-05 21:59 ` jason at gcc dot gnu.org
2011-08-06 4:36 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-05 21:59 UTC (permalink / raw)
To: gcc-bugs
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 |
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48993] [C++0x] segmentation fault when compiling this program with constexpr
2011-05-13 22:33 [Bug c++/48993] New: segmentation fault when compiling this program with constexpr akrzemi1 at gmail dot com
2011-07-24 20:23 ` [Bug c++/48993] [C++0x\ " pinskia at gcc dot gnu.org
2011-08-05 21:59 ` [Bug c++/48993] [C++0x] " jason at gcc dot gnu.org
@ 2011-08-06 4:36 ` jason at gcc dot gnu.org
2011-08-06 4:40 ` jason at gcc dot gnu.org
2011-08-06 22:24 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-06 4:36 UTC (permalink / raw)
To: gcc-bugs
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=gcc&view=rev&rev=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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48993] [C++0x] segmentation fault when compiling this program with constexpr
2011-05-13 22:33 [Bug c++/48993] New: segmentation fault when compiling this program with constexpr akrzemi1 at gmail dot com
` (2 preceding siblings ...)
2011-08-06 4:36 ` jason at gcc dot gnu.org
@ 2011-08-06 4:40 ` jason at gcc dot gnu.org
2011-08-06 22:24 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-06 4:40 UTC (permalink / raw)
To: gcc-bugs
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=gcc&view=rev&rev=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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48993] [C++0x] segmentation fault when compiling this program with constexpr
2011-05-13 22:33 [Bug c++/48993] New: segmentation fault when compiling this program with constexpr akrzemi1 at gmail dot com
` (3 preceding siblings ...)
2011-08-06 4:40 ` jason at gcc dot gnu.org
@ 2011-08-06 22:24 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-06 22:24 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-08-06 22:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-13 22:33 [Bug c++/48993] New: segmentation fault when compiling this program with constexpr akrzemi1 at gmail dot com
2011-07-24 20:23 ` [Bug c++/48993] [C++0x\ " pinskia at gcc dot gnu.org
2011-08-05 21:59 ` [Bug c++/48993] [C++0x] " jason at gcc dot gnu.org
2011-08-06 4:36 ` jason at gcc dot gnu.org
2011-08-06 4:40 ` jason at gcc dot gnu.org
2011-08-06 22:24 ` jason at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).