This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/7939: ICE on invalid template usage

>Number:         7939
>Category:       c++
>Synopsis:       ICE on invalid template usage
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 16 14:56:00 PDT 2002
>Originator:     Krzysztof Parzyszek <>
>Release:        3.3 20020916 (experimental)
System: FreeBSD 4.6-STABLE FreeBSD 4.6-STABLE #15: Sat Aug 24 23:25:48 CDT 2002 i386

host: i386-unknown-freebsd4.6
build: i386-unknown-freebsd4.6
target: i386-unknown-freebsd4.6
configured with: ../gcc/configure --prefix=/u/gcc-20020916 --enable-languages=c,c++,f77
Attempt to create a partial specialization of a function template (problem 1)
with a type `void' used as a function argument type (problem 2) causes an
internal compiler error.
# 1 ""
# 1 "<built-in>"
# 1 "<command line>"
# 1 ""
template <class T, class U> void foo(T, U) {}
template <class T> void foo<T,void>(T, void) {}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]