Article View: gnu.gcc.bug
Article #5920Partial specification of templates (internal compiler error)
From: Frank Cieslok
Date: Wed, 29 Jan 1997 00:00
Date: Wed, 29 Jan 1997 00:00
52 lines
1472 bytes
1472 bytes
Hello,
I'm afraid we found a bug in gcc-2.7.2 occuring when partial
specification of templates is used.
* Compiler-Version : gcc-2.7.2
* Code :
----------------------------[ cut ]------------------------------
template <class T1, class T2>
class foo
{
T1 dummy1;
T2 dummy2;
};
template <class T1>
class foo<T1, char>
{
T1 dummy1;
char dummy2;
};
main()
{
foo<int, int> a;
foo<int, char> a;
}
----------------------------[ cut ]------------------------------
* Command line arguments : g++ -Wall testfile.cc
* Machine : Ultrasparc, Solaris 5.5.1
* Error message :
testfile.cc:11: Internal compiler error
testfile.cc:11: Please submit a full bug report to `bug-g++@prep.ai.mit.edu'.
Respectfully,
Frank
--
FIDO : Frank Cieslok@2:241/575.11
UUCP : frank@senax.8bbs.priconet.de (frankc@ida.ing.tu-bs.de)
Technical Details
Message-ID:
<9701291113.AA23915@sueton.ida.ing.tu-bs.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,68070c0a257897d9,start X-Google-Attributes: gid113d02,public From: frankc@ida.ing.tu-bs.de (Frank Cieslok) Subject: Partial specification of templates (internal compiler error) Date: 1997/01/29 Message-ID: <9701291113.AA23915@sueton.ida.ing.tu-bs.de> X-Deja-AN: 212970246 sender: bug-gcc-request@prep.ai.mit.edu x-gateway: relay7.UU.NET from bug-gcc to gnu.gcc.bug; Wed, 29 Jan 1997 06:14:04 EST newsgroups: gnu.gcc.bug x-mailer: ELM [version 2.2 PL14]