This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20789] [3.4/4.0/4.1 regression] ICE with incomplete type in template
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Apr 2005 20:14:28 -0000
- Subject: [Bug c++/20789] [3.4/4.0/4.1 regression] ICE with incomplete type in template
- References: <20050406123626.20789.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-04-11 20:14 -------
Confirmed, happens since gcc 3.4.0.
Reduced testcase:
======================================
template<typename> struct A;
template<int> struct B {};
template<typename T> struct C
{
static const int i = A<T>::i;
static const int j = i;
B<j> b;
};
C<int> c;
======================================
Error message:
PR20789.cc: In instantiation of 'C<int>':
PR20789.cc:12: instantiated from here
PR20789.cc:7: error: incomplete type 'A<int>' used in nested name specifier
g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report. [etc.]
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |error-recovery, ice-on-
| |invalid-code, monitored
Last reconfirmed|0000-00-00 00:00:00 |2005-04-11 20:14:27
date| |
Summary|segv |[3.4/4.0/4.1 regression] ICE
| |with incomplete type in
| |template
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20789