This is the mail archive of the gcc-prs@gcc.gnu.org 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
>Closed-Date:
>Last-Modified:
>Originator:     Krzysztof Parzyszek <kparz@iastate.edu>
>Release:        3.3 20020916 (experimental)
>Organization:
>Environment:
System: FreeBSD arcturus.student.iastate.edu 4.6-STABLE FreeBSD 4.6-STABLE #15: Sat Aug 24 23:25:48 CDT 2002 kparz@arcturus.student.iastate.edu:/usr/obj/usr/src/sys/ARCTURUS 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
>Description:
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.
>How-To-Repeat:
# 1 "gcc-ice1.cc"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "gcc-ice1.cc"
template <class T, class U> void foo(T, U) {}
template <class T> void foo<T,void>(T, void) {}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


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