public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55432] New: Too much constexpr makes the compiler crash
@ 2012-11-21 21:57 akrzemi1 at gmail dot com
2012-11-21 22:09 ` [Bug c++/55432] " daniel.kruegler at googlemail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: akrzemi1 at gmail dot com @ 2012-11-21 21:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55432
Bug #: 55432
Summary: Too much constexpr makes the compiler crash
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: akrzemi1@gmail.com
The following short code crashes the compiler:
struct tag_t{} tag{};
constexpr tag_t const& pass(tag_t & t)
{
return t;
}
struct S
{
constexpr S(tag_t) {};
};
struct T
{
S mem;
T( tag_t & args ) : mem(pass(args)) {}
};
T t(tag);
int main() {}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/55432] Too much constexpr makes the compiler crash
2012-11-21 21:57 [Bug c++/55432] New: Too much constexpr makes the compiler crash akrzemi1 at gmail dot com
@ 2012-11-21 22:09 ` daniel.kruegler at googlemail dot com
2012-11-22 9:54 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2012-11-21 22:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55432
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-11-21 22:08:55 UTC ---
This seems to be fixed in 4.8.0 HEAD
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/55432] Too much constexpr makes the compiler crash
2012-11-21 21:57 [Bug c++/55432] New: Too much constexpr makes the compiler crash akrzemi1 at gmail dot com
2012-11-21 22:09 ` [Bug c++/55432] " daniel.kruegler at googlemail dot com
@ 2012-11-22 9:54 ` paolo.carlini at oracle dot com
2012-11-22 10:23 ` paolo at gcc dot gnu.org
2012-11-22 10:24 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-22 9:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55432
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-22 09:54:07 UTC ---
It is, in mainline and 4.7.2. To be safe, I'm adding the testcase and then will
close the PR.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/55432] Too much constexpr makes the compiler crash
2012-11-21 21:57 [Bug c++/55432] New: Too much constexpr makes the compiler crash akrzemi1 at gmail dot com
2012-11-21 22:09 ` [Bug c++/55432] " daniel.kruegler at googlemail dot com
2012-11-22 9:54 ` paolo.carlini at oracle dot com
@ 2012-11-22 10:23 ` paolo at gcc dot gnu.org
2012-11-22 10:24 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2012-11-22 10:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55432
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-11-22 10:23:07 UTC ---
Author: paolo
Date: Thu Nov 22 10:23:03 2012
New Revision: 193723
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193723
Log:
2012-11-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55432
* g++.dg/cpp0x/constexpr-55432.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-55432.C
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/55432] Too much constexpr makes the compiler crash
2012-11-21 21:57 [Bug c++/55432] New: Too much constexpr makes the compiler crash akrzemi1 at gmail dot com
` (2 preceding siblings ...)
2012-11-22 10:23 ` paolo at gcc dot gnu.org
@ 2012-11-22 10:24 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-22 10:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55432
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-22 10:23:58 UTC ---
Done.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-22 10:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-21 21:57 [Bug c++/55432] New: Too much constexpr makes the compiler crash akrzemi1 at gmail dot com
2012-11-21 22:09 ` [Bug c++/55432] " daniel.kruegler at googlemail dot com
2012-11-22 9:54 ` paolo.carlini at oracle dot com
2012-11-22 10:23 ` paolo at gcc dot gnu.org
2012-11-22 10:24 ` paolo.carlini at oracle dot com
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).