public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49932] New: [C++0x] ICE on instantiating decltype(expr)::type with template
@ 2011-08-01 13:17 flast at flast dot jp
2011-08-01 14:02 ` [Bug c++/49932] " paolo.carlini at oracle dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: flast at flast dot jp @ 2011-08-01 13:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49932
Summary: [C++0x] ICE on instantiating decltype(expr)::type with
template
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: flast@flast.jp
ICE on instantiating the following two template functions.
I tested with GCC 4.7.0 20110801.
---- 8< ----
template < typename T >
auto
f1( T x ) // ICE on here
-> typename decltype( x )::type {}
template < typename T >
typename decltype( T{} )::type
f2( T x ) {} // ICE on here
struct S { typedef void type; };
void g()
{
f1( S() );
f2( S() );
}
---- 8< ----
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49932] [C++0x] ICE on instantiating decltype(expr)::type with template
2011-08-01 13:17 [Bug c++/49932] New: [C++0x] ICE on instantiating decltype(expr)::type with template flast at flast dot jp
@ 2011-08-01 14:02 ` paolo.carlini at oracle dot com
2011-08-01 20:33 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-08-01 14:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49932
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.08.01 14:01:45
CC| |jason at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-08-01 14:01:45 UTC ---
The ICE happens in the mangler, in write_prefix: decl = TREE_TYPE (node) is
NULL_TREE.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49932] [C++0x] ICE on instantiating decltype(expr)::type with template
2011-08-01 13:17 [Bug c++/49932] New: [C++0x] ICE on instantiating decltype(expr)::type with template flast at flast dot jp
2011-08-01 14:02 ` [Bug c++/49932] " paolo.carlini at oracle dot com
@ 2011-08-01 20:33 ` jason at gcc dot gnu.org
2011-08-01 21:03 ` jason at gcc dot gnu.org
2011-08-02 13:00 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-01 20:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49932
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49932] [C++0x] ICE on instantiating decltype(expr)::type with template
2011-08-01 13:17 [Bug c++/49932] New: [C++0x] ICE on instantiating decltype(expr)::type with template flast at flast dot jp
2011-08-01 14:02 ` [Bug c++/49932] " paolo.carlini at oracle dot com
2011-08-01 20:33 ` jason at gcc dot gnu.org
@ 2011-08-01 21:03 ` jason at gcc dot gnu.org
2011-08-02 13:00 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-01 21:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49932
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-01 21:02:10 UTC ---
Author: jason
Date: Mon Aug 1 21:02:07 2011
New Revision: 177074
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177074
Log:
PR c++/49932
gcc/cp/
* mangle.c (write_prefix): Handle decltype.
libiberty/
* cp-demangle.c (d_prefix): Handle decltype.
Added:
trunk/gcc/testsuite/g++.dg/abi/mangle49.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/mangle.c
trunk/gcc/testsuite/ChangeLog
trunk/libiberty/ChangeLog
trunk/libiberty/cp-demangle.c
trunk/libiberty/testsuite/demangle-expected
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49932] [C++0x] ICE on instantiating decltype(expr)::type with template
2011-08-01 13:17 [Bug c++/49932] New: [C++0x] ICE on instantiating decltype(expr)::type with template flast at flast dot jp
` (2 preceding siblings ...)
2011-08-01 21:03 ` jason at gcc dot gnu.org
@ 2011-08-02 13:00 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-02 13:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49932
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-02 12:59:46 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-02 13:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-01 13:17 [Bug c++/49932] New: [C++0x] ICE on instantiating decltype(expr)::type with template flast at flast dot jp
2011-08-01 14:02 ` [Bug c++/49932] " paolo.carlini at oracle dot com
2011-08-01 20:33 ` jason at gcc dot gnu.org
2011-08-01 21:03 ` jason at gcc dot gnu.org
2011-08-02 13:00 ` 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).