public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51541] New: ICE on ill-formed alias template declarations
@ 2011-12-13 23:31 richard-gccbugzilla at metafoo dot co.uk
  2011-12-17 11:21 ` [Bug c++/51541] " paolo.carlini at oracle dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: richard-gccbugzilla at metafoo dot co.uk @ 2011-12-13 23:31 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51541
           Summary: ICE on ill-formed alias template declarations
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: richard-gccbugzilla@metafoo.co.uk


The following tests from clang's alias templates testsuite all cause g++ svn to
ICE:

template<typename Z> using ::T = void(int n);
template<typename Z> using operator int = void(int n);
template<typename Z> using typename U = void;
template<typename Z> using typename ::V = void(int n);
template<typename Z> using typename ::operator bool = void(int n);

tmp.cpp:1:28: internal compiler error: in make_id_declarator, at
cp/parser.c:1270


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

* [Bug c++/51541] ICE on ill-formed alias template declarations
  2011-12-13 23:31 [Bug c++/51541] New: ICE on ill-formed alias template declarations richard-gccbugzilla at metafoo dot co.uk
@ 2011-12-17 11:21 ` paolo.carlini at oracle dot com
  2012-01-03 15:40 ` dodji at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-17 11:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-17
                 CC|                            |dodji at gcc dot gnu.org
     Ever Confirmed|0                           |1


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

* [Bug c++/51541] ICE on ill-formed alias template declarations
  2011-12-13 23:31 [Bug c++/51541] New: ICE on ill-formed alias template declarations richard-gccbugzilla at metafoo dot co.uk
  2011-12-17 11:21 ` [Bug c++/51541] " paolo.carlini at oracle dot com
@ 2012-01-03 15:40 ` dodji at gcc dot gnu.org
  2012-01-05 16:58 ` dodji at seketeli dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dodji at gcc dot gnu.org @ 2012-01-03 15:40 UTC (permalink / raw)
  To: gcc-bugs

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

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |dodji at gcc dot gnu.org
                   |gnu.org                     |


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

* [Bug c++/51541] ICE on ill-formed alias template declarations
  2011-12-13 23:31 [Bug c++/51541] New: ICE on ill-formed alias template declarations richard-gccbugzilla at metafoo dot co.uk
  2011-12-17 11:21 ` [Bug c++/51541] " paolo.carlini at oracle dot com
  2012-01-03 15:40 ` dodji at gcc dot gnu.org
@ 2012-01-05 16:58 ` dodji at seketeli dot org
  2012-01-05 23:00 ` dodji at gcc dot gnu.org
  2012-01-05 23:02 ` dodji at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: dodji at seketeli dot org @ 2012-01-05 16:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from dodji at seketeli dot org <dodji at seketeli dot org> 2012-01-05 16:58:29 UTC ---
A candidate fix has been posted to
http://gcc.gnu.org/ml/gcc-patches/2012-01/msg00256.html


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

* [Bug c++/51541] ICE on ill-formed alias template declarations
  2011-12-13 23:31 [Bug c++/51541] New: ICE on ill-formed alias template declarations richard-gccbugzilla at metafoo dot co.uk
                   ` (2 preceding siblings ...)
  2012-01-05 16:58 ` dodji at seketeli dot org
@ 2012-01-05 23:00 ` dodji at gcc dot gnu.org
  2012-01-05 23:02 ` dodji at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: dodji at gcc dot gnu.org @ 2012-01-05 23:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Dodji Seketeli <dodji at gcc dot gnu.org> 2012-01-05 23:00:25 UTC ---
Author: dodji
Date: Thu Jan  5 23:00:14 2012
New Revision: 182935

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182935
Log:
PR c++/51541 - ICE with invalid identifier in alias-declaration

gcc/cp/

    PR c++/51541
    * parser.c (cp_parser_alias_declaration): Get out early upon
    errors in the identifier or the attributes.

gcc/testsuite/

    PR c++/51541
    * g++.dg/cpp0x/alias-decl-18.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/alias-decl-18.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/51541] ICE on ill-formed alias template declarations
  2011-12-13 23:31 [Bug c++/51541] New: ICE on ill-formed alias template declarations richard-gccbugzilla at metafoo dot co.uk
                   ` (3 preceding siblings ...)
  2012-01-05 23:00 ` dodji at gcc dot gnu.org
@ 2012-01-05 23:02 ` dodji at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: dodji at gcc dot gnu.org @ 2012-01-05 23:02 UTC (permalink / raw)
  To: gcc-bugs

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

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Dodji Seketeli <dodji at gcc dot gnu.org> 2012-01-05 23:01:40 UTC ---
Should be fixed in trunk (4.7).

Thanks for filling this.


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

end of thread, other threads:[~2012-01-05 23:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13 23:31 [Bug c++/51541] New: ICE on ill-formed alias template declarations richard-gccbugzilla at metafoo dot co.uk
2011-12-17 11:21 ` [Bug c++/51541] " paolo.carlini at oracle dot com
2012-01-03 15:40 ` dodji at gcc dot gnu.org
2012-01-05 16:58 ` dodji at seketeli dot org
2012-01-05 23:00 ` dodji at gcc dot gnu.org
2012-01-05 23:02 ` dodji 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).