public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53563] New: ICE in start_decl, at cp/decl.c:4427
@ 2012-06-03  9:07 y121516 at gmail dot com
  2012-06-03 19:29 ` [Bug c++/53563] " paolo.carlini at oracle dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: y121516 at gmail dot com @ 2012-06-03  9:07 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53563
           Summary: ICE in start_decl, at cp/decl.c:4427
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: y121516@gmail.com


ICE occured.


source:

$ cat a.cpp
template<class T>
struct s
{
 template<class U>
 s(){}
};

int main() {
 struct s<void>::s<void> a;
}


output:

$ bin/gcc4.6/bin/g++ a.cpp
a.cpp: In function 'int main()':
a.cpp:9:26: internal compiler error: in start_decl, at cp/decl.c:4427
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


OS: Windows XP
GCC version:

$ bin/gcc4.6/bin/g++ -v
Built by Equation Solution <http://www.Equation.com>.
Using built-in specs.
COLLECT_GCC=C:\cygwin\home\Yuhki\bin\gcc4.6\bin\g++.exe
COLLECT_LTO_WRAPPER=c:/cygwin/home/yuhki/bin/gcc4.6/bin/../libexec/gcc/i686-pc-mingw32/4.6.3/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with: ../gcc-4.6.3-mingw/configure --host=i686-pc-mingw32
--build=x86_64-unknown-linux-gnu --target=i686-pc-mingw32
--prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gcc/4.6.3
--with-gcc --with-gnu-as --with-gnu-ld --with-host-libstdcxx='-lstdc++ -lsupc++
-lm' --with-ppl=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/ppl
--with-cloog=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/cloog
--with-gmp=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gmp
--with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpfr
--with-mpc=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpc
--with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cross/x86_32/gcc/4.6.3
--disable-shared --disable-nls --disable-tls --disable-win32-registry
--enable-libquadmath-support --enable-libquadmath
--enable-languages=c,c++,fortran --enable-libgomp --enable-threads=win32
--enable-lto --enable-static --enable-shared=lto-plugin --enable-plugins
--enable-ld=yes --enable-cloog-backend=ppl
Thread model: win32
gcc version 4.6.3 (GCC)


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

* [Bug c++/53563] ICE in start_decl, at cp/decl.c:4427
  2012-06-03  9:07 [Bug c++/53563] New: ICE in start_decl, at cp/decl.c:4427 y121516 at gmail dot com
@ 2012-06-03 19:29 ` paolo.carlini at oracle dot com
  2012-06-04 10:10 ` [Bug c++/53563] [4.5/4.6/4.7/4.8 Regression] " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-06-03 19:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-06-03 19:28:28 UTC ---
*** Bug 53564 has been marked as a duplicate of this bug. ***


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

* [Bug c++/53563] [4.5/4.6/4.7/4.8 Regression] ICE in start_decl, at cp/decl.c:4427
  2012-06-03  9:07 [Bug c++/53563] New: ICE in start_decl, at cp/decl.c:4427 y121516 at gmail dot com
  2012-06-03 19:29 ` [Bug c++/53563] " paolo.carlini at oracle dot com
@ 2012-06-04 10:10 ` rguenth at gcc dot gnu.org
  2012-06-27 19:19 ` jason at gcc dot gnu.org
  2012-06-27 19:20 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-04 10:10 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.3.6
           Keywords|                            |error-recovery,
                   |                            |ice-on-invalid-code
   Last reconfirmed|                            |2012-06-04
     Ever Confirmed|0                           |1
            Summary|ICE in start_decl, at       |[4.5/4.6/4.7/4.8
                   |cp/decl.c:4427              |Regression] ICE in
                   |                            |start_decl, at
                   |                            |cp/decl.c:4427
   Target Milestone|---                         |4.5.4

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-04 10:10:13 UTC ---
4.7 and trunk issue an error before:

t.ii: In function 'int main()':
t.ii:9:20: error: using typedef-name 's<void>' after 'struct'
t.ii:9:20: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'baselink' in check_elaborated_type_specifier,
at cp/decl.c:11475
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

4.3 "works":

t.ii: In function 'int main()':
t.ii:9: error: no matching function for call to 's<void>::s()'
t.ii:3: note: candidates are: s<void>::s(const s<void>&)


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

* [Bug c++/53563] [4.5/4.6/4.7/4.8 Regression] ICE in start_decl, at cp/decl.c:4427
  2012-06-03  9:07 [Bug c++/53563] New: ICE in start_decl, at cp/decl.c:4427 y121516 at gmail dot com
  2012-06-03 19:29 ` [Bug c++/53563] " paolo.carlini at oracle dot com
  2012-06-04 10:10 ` [Bug c++/53563] [4.5/4.6/4.7/4.8 Regression] " rguenth at gcc dot gnu.org
@ 2012-06-27 19:19 ` jason at gcc dot gnu.org
  2012-06-27 19:20 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2012-06-27 19:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-27 19:19:14 UTC ---
Author: jason
Date: Wed Jun 27 19:19:09 2012
New Revision: 189024

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189024
Log:
    PR c++/53563
    * parser.c (cp_parser_template_id): Add tag_type parm.
    (cp_parser_template_name): Likewise.
    (cp_parser_id_expression, cp_parser_unqualified_id): Adjust.
    (cp_parser_pseudo_destructor_name, cp_parser_type_name): Adjust.
    (cp_parser_simple_type_specifier, cp_parser_class_name): Adjust.
    (cp_parser_elaborated_type_specifier, cp_parser_class_head): Adjust.

Added:
    trunk/gcc/testsuite/g++.dg/parse/template27.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/template/crash74.C


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

* [Bug c++/53563] [4.5/4.6/4.7/4.8 Regression] ICE in start_decl, at cp/decl.c:4427
  2012-06-03  9:07 [Bug c++/53563] New: ICE in start_decl, at cp/decl.c:4427 y121516 at gmail dot com
                   ` (2 preceding siblings ...)
  2012-06-27 19:19 ` jason at gcc dot gnu.org
@ 2012-06-27 19:20 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2012-06-27 19:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|                            |FIXED
   Target Milestone|4.5.4                       |4.8.0

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-27 19:20:27 UTC ---
Fixed for 4.8.  Not backporting fixes for error-recovery bugs.


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

end of thread, other threads:[~2012-06-27 19:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-03  9:07 [Bug c++/53563] New: ICE in start_decl, at cp/decl.c:4427 y121516 at gmail dot com
2012-06-03 19:29 ` [Bug c++/53563] " paolo.carlini at oracle dot com
2012-06-04 10:10 ` [Bug c++/53563] [4.5/4.6/4.7/4.8 Regression] " rguenth at gcc dot gnu.org
2012-06-27 19:19 ` jason at gcc dot gnu.org
2012-06-27 19:20 ` 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).