This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ bug in a two-line code with a class template
- To: Marc Duflot <M dot Duflot at ulg dot ac dot be>
- Subject: Re: g++ bug in a two-line code with a class template
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 05 Oct 2000 12:46:09 +0200
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <39DC595A.D41B0E7E@ulg.ac.be>
Marc Duflot <M.Duflot@ulg.ac.be> writes:
| $ g++ -v
| Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
|
| gcc version 2.95.2 19991024 (release)
| $ cat bug.C
| template <int N,int M> class A{};
| template <> A<1,1>::A() {}
| $ g++ -c bug.C
| bug.C:2: Internal compiler error.
| bug.C:2: Please submit a full bug report.
| bug.C:2: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport>
| for instructions.
| $
Thanks you for your bug report. However, let me point out that your
code is ill-formed. But an ICE is certainly an unfriendly diagnostic.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com