public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47200] New: [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function
@ 2011-01-07 2:20 zsojka at seznam dot cz
2011-01-07 2:20 ` [Bug c++/47200] " zsojka at seznam dot cz
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-07 2:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47200
Summary: [C++0x] ICE: in adjust_temp_type, at
cp/semantics.c:5821 with missing definition of
constexpr function
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Created attachment 22918
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22918
reduced testcase
Compiler output:
$ gcc -std=c++0x pr47200.C
pr47200.C:13:1: error: non-constant condition for static assertion
pr47200.C:13:40: error: 'static constexpr duration<<anonymous> >
duration<<anonymous> >::min() [with int <anonymous> = 0, duration<<anonymous> >
= duration<0>]' used before its definition
pr47200.C:13:1: internal compiler error: in adjust_temp_type, at
cp/semantics.c:5821
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r168535 - crash
r165699 - rejects the code
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47200] [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function
2011-01-07 2:20 [Bug c++/47200] New: [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function zsojka at seznam dot cz
@ 2011-01-07 2:20 ` zsojka at seznam dot cz
2011-01-07 8:33 ` hjl.tools at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-07 2:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47200
Zdenek Sojka <zsojka at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Known to fail| |4.6.0
Severity|normal |minor
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47200] [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function
2011-01-07 2:20 [Bug c++/47200] New: [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function zsojka at seznam dot cz
2011-01-07 2:20 ` [Bug c++/47200] " zsojka at seznam dot cz
@ 2011-01-07 8:33 ` hjl.tools at gmail dot com
2011-03-01 22:32 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2011-01-07 8:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47200
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.01.07 05:34:49
CC| |jason at redhat dot com
Ever Confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-07 05:34:49 UTC ---
ICE is caused by revision 166167:
http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00053.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47200] [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function
2011-01-07 2:20 [Bug c++/47200] New: [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function zsojka at seznam dot cz
2011-01-07 2:20 ` [Bug c++/47200] " zsojka at seznam dot cz
2011-01-07 8:33 ` hjl.tools at gmail dot com
@ 2011-03-01 22:32 ` jason at gcc dot gnu.org
2011-03-02 18:18 ` jason at gcc dot gnu.org
2011-03-14 5:10 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-01 22:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47200
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47200] [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function
2011-01-07 2:20 [Bug c++/47200] New: [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function zsojka at seznam dot cz
` (2 preceding siblings ...)
2011-03-01 22:32 ` jason at gcc dot gnu.org
@ 2011-03-02 18:18 ` jason at gcc dot gnu.org
2011-03-14 5:10 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-02 18:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47200
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-02 18:18:35 UTC ---
Author: jason
Date: Wed Mar 2 18:18:31 2011
New Revision: 170620
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170620
Log:
PR c++/47200
* semantics.c (cxx_bind_parameters_in_call): Don't call
adjust_temp_type on non-constant args.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-non-const-arg2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47200] [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function
2011-01-07 2:20 [Bug c++/47200] New: [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function zsojka at seznam dot cz
` (3 preceding siblings ...)
2011-03-02 18:18 ` jason at gcc dot gnu.org
@ 2011-03-14 5:10 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-14 5:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47200
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-14 05:09:47 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-03-14 5:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-07 2:20 [Bug c++/47200] New: [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function zsojka at seznam dot cz
2011-01-07 2:20 ` [Bug c++/47200] " zsojka at seznam dot cz
2011-01-07 8:33 ` hjl.tools at gmail dot com
2011-03-01 22:32 ` jason at gcc dot gnu.org
2011-03-02 18:18 ` jason at gcc dot gnu.org
2011-03-14 5:10 ` 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).