public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49823] New: [C++0x] ICE on decltype(expr)::type with template
@ 2011-07-23 15:38 flast at flast dot jp
  2011-07-23 15:55 ` [Bug c++/49823] " paolo.carlini at oracle dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: flast at flast dot jp @ 2011-07-23 15:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49823

           Summary: [C++0x] ICE on 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


All of following three template functions occur ICE with GCC 4.7.0 20110723.

----8<----
template < typename T >
auto f( const T &x )
  -> typename decltype( x )::type; // ICE on here

template < typename T >
typename decltype( T{} )::type // ICE on here
f( T );

template < typename T >
void f( T x )
{ typename decltype( x )::type x; } // ICE on here
----8<----


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/49823] [C++0x] ICE on decltype(expr)::type with template
  2011-07-23 15:38 [Bug c++/49823] New: [C++0x] ICE on decltype(expr)::type with template flast at flast dot jp
@ 2011-07-23 15:55 ` paolo.carlini at oracle dot com
  2011-07-25  5:04 ` jason at gcc dot gnu.org
  2011-07-25  5:05 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-07-23 15:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49823

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.07.23 15:54:58
                 CC|                            |jason at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-07-23 15:54:58 UTC ---
The new if block added at the beginning of cp_parser_qualifying_entity as part
of implementing DR 743, returns NULL_TREE as TYPE_NAME (scope).


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/49823] [C++0x] ICE on decltype(expr)::type with template
  2011-07-23 15:38 [Bug c++/49823] New: [C++0x] ICE on decltype(expr)::type with template flast at flast dot jp
  2011-07-23 15:55 ` [Bug c++/49823] " paolo.carlini at oracle dot com
@ 2011-07-25  5:04 ` jason at gcc dot gnu.org
  2011-07-25  5:05 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-07-25  5:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49823

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-25 05:03:54 UTC ---
Author: jason
Date: Mon Jul 25 05:03:50 2011
New Revision: 176732

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176732
Log:
    PR c++/49823
    * parser.c (cp_parser_qualifying_entity): Handle templates.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/decltype21.C


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/49823] [C++0x] ICE on decltype(expr)::type with template
  2011-07-23 15:38 [Bug c++/49823] New: [C++0x] ICE on decltype(expr)::type with template flast at flast dot jp
  2011-07-23 15:55 ` [Bug c++/49823] " paolo.carlini at oracle dot com
  2011-07-25  5:04 ` jason at gcc dot gnu.org
@ 2011-07-25  5:05 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-07-25  5:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49823

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.7.0

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-25 05:04:21 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-25  5:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-23 15:38 [Bug c++/49823] New: [C++0x] ICE on decltype(expr)::type with template flast at flast dot jp
2011-07-23 15:55 ` [Bug c++/49823] " paolo.carlini at oracle dot com
2011-07-25  5:04 ` jason at gcc dot gnu.org
2011-07-25  5:05 ` 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).