public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13494] New: ICE on bidimensional array subscription in template function.
@ 2003-12-26 16:08 bernie at develer dot com
2003-12-26 17:58 ` [Bug c++/13494] [3.4 Regresssion] [ABI] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bernie at develer dot com @ 2003-12-26 16:08 UTC (permalink / raw)
To: gcc-bugs
Oddly, this ICE goes away if the function isn't a template
or if the array has a single dimension.
template<typename T>
int foo(int d[][4])
{
return d[0][0];
}
/gccbug.cpp:4: internal compiler error: in cxx_incomplete_type_diagnostic, at
cp/typeck2.c:273
--
Summary: ICE on bidimensional array subscription in template
function.
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bernie at develer dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13494
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/13494] [3.4 Regresssion] [ABI] ICE on bidimensional array subscription in template function.
2003-12-26 16:08 [Bug c++/13494] New: ICE on bidimensional array subscription in template function bernie at develer dot com
@ 2003-12-26 17:58 ` pinskia at gcc dot gnu dot org
2003-12-30 10:44 ` [Bug c++/13494] [3.4 Regresssion] " nathan at gcc dot gnu dot org
2003-12-30 10:45 ` cvs-commit at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-26 17:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-26 16:08 -------
Confirmed (but it only ICEs now with -fabi-version=1).
>From Phil's regression hunter: Search converges between 2003-07-08-trunk (#337) and 2003-07
-09-trunk (#338).
Nathan I see that you took care of the pervious ABI problems with templates, can you try to fix this
one too?
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-12-26 16:08:25
date| |
Summary|ICE on bidimensional array |[3.4 Regresssion] [ABI] ICE
|subscription in template |on bidimensional array
|function. |subscription in template
| |function.
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13494
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/13494] [3.4 Regresssion] ICE on bidimensional array subscription in template function.
2003-12-26 16:08 [Bug c++/13494] New: ICE on bidimensional array subscription in template function bernie at develer dot com
2003-12-26 17:58 ` [Bug c++/13494] [3.4 Regresssion] [ABI] " pinskia at gcc dot gnu dot org
@ 2003-12-30 10:44 ` nathan at gcc dot gnu dot org
2003-12-30 10:45 ` cvs-commit at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-12-30 10:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2003-12-30 09:58 -------
2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
PR c++/13494
* tree.c (build_cplus_array_type_1): Only build a minimal array
type for dependent types or domains.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13494
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/13494] [3.4 Regresssion] ICE on bidimensional array subscription in template function.
2003-12-26 16:08 [Bug c++/13494] New: ICE on bidimensional array subscription in template function bernie at develer dot com
2003-12-26 17:58 ` [Bug c++/13494] [3.4 Regresssion] [ABI] " pinskia at gcc dot gnu dot org
2003-12-30 10:44 ` [Bug c++/13494] [3.4 Regresssion] " nathan at gcc dot gnu dot org
@ 2003-12-30 10:45 ` cvs-commit at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-30 10:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-30 10:07 -------
Subject: Bug 13494
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: nathan@gcc.gnu.org 2003-12-30 10:07:14
Modified files:
gcc/cp : ChangeLog tree.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: array2-1.C array2-2.C
Log message:
cp:
PR c++/13494
* tree.c (build_cplus_array_type_1): Only build a minimal array
type for dependent types or domains.
testsuite:
PR c++/13494
* g++.dg/template/array2-1.C: New test.
* g++.dg/template/array2-2.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3841&r2=1.3842
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/tree.c.diff?cvsroot=gcc&r1=1.359&r2=1.360
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3321&r2=1.3322
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/array2-1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/array2-2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13494
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-30 10:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-26 16:08 [Bug c++/13494] New: ICE on bidimensional array subscription in template function bernie at develer dot com
2003-12-26 17:58 ` [Bug c++/13494] [3.4 Regresssion] [ABI] " pinskia at gcc dot gnu dot org
2003-12-30 10:44 ` [Bug c++/13494] [3.4 Regresssion] " nathan at gcc dot gnu dot org
2003-12-30 10:45 ` cvs-commit at gcc dot gnu dot 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).