[Insight-developers] Visual Studio 6 INTERNAL COMPILER ERROR
Robert Tamburo
rjtst21@pitt.edu
Mon, 7 Apr 2003 16:59:43 -0400
This is a multi-part message in MIME format.
------=_NextPart_000_001A_01C2FD27.16005E70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Commenting out the following lines of code in itkConceptChecking.h fixes =
my problem. It seems that it checks for matching template parameters, =
but my two classes aren't templated.......
//template <int> struct UniqueType_int {};
//template <unsigned int> struct UniqueType_unsigned_int {};
/*
struct Constraints
{
typedef Detail::UniqueType_unsigned_int<D1> DT1;
typedef Detail::UniqueType_unsigned_int<D2> DT2;
void constraints()
{
DT1 a =3D DT2();
Detail::IgnoreUnusedVariable(a);
}
};
itkConceptConstraintsMacro();
*/
----- Original Message -----=20
From: Robert Tamburo=20
To: insight-developers@public.kitware.com=20
Sent: Monday, April 07, 2003 4:43 PM
Subject: [Insight-developers] Visual Studio 6 INTERNAL COMPILER ERROR
Hi all, in Visual Studio 6 I am getting a strange error when I try to =
include Header A in Header B. When I include Header A anywhere else, =
everything is fine:
D:\Insight\Code\Common\itkConceptChecking.h(96) : fatal error C1001: =
INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)=20
Please choose the Technical Support command on the Visual C++ =
Help menu, or open the Technical Support help file for more =
information
The error points to the last line of the following block of code from =
itkConceptChecking.h
/**=20
* Some concept implementation details are adapted from the BOOST C++
* libraries (www.boost.org). These are marked with "(BOOST)" in the
* corresponding comment.
*/
/** Namespace containing concept check implementation details. */
namespace Detail
{
template <typename T> struct UniqueType {};
template <int> struct UniqueType_int {};
I did a search on Google and noticed that this error with msc1.cpp =
seems to be a fairly common and random error. However, I fell upon this =
link at boost.org: =
http://lists.boost.org/MailArchives/boost/msg36520.php
I also found this thread from the itk users list, but I have SP 5.
http://www.itk.org/pipermail/insight-users/2002-February/000100.html
Any ideas about what is going on? Is there some sort of error =
propogation from Boost to itkConceptChecking.h? Any known fixes?
Thanks,
Robert
------=_NextPart_000_001A_01C2FD27.16005E70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Commenting out the following lines of =
code in=20
itkConceptChecking.h fixes my problem. It seems that it checks for =
matching=20
template parameters, but my two classes aren't =
templated.......</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>//template <int> struct =
UniqueType_int=20
{};<BR>//template <unsigned int> struct UniqueType_unsigned_int=20
{};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>/*<BR> struct =
Constraints<BR> =20
{<BR> typedef =
Detail::UniqueType_unsigned_int<D1>=20
DT1;<BR> typedef =
Detail::UniqueType_unsigned_int<D2>=20
DT2;<BR> void =
constraints()<BR> =20
{<BR> DT1 a =3D=20
DT2();<BR> =20
Detail::IgnoreUnusedVariable(a);<BR> =
}<BR> =20
};<BR> itkConceptConstraintsMacro();<BR>*/</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Drjtst21+@pitt.edu href=3D"mailto:rjtst21+@pitt.edu">Robert =
Tamburo</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
title=3Dinsight-developers@public.kitware.com=20
=
href=3D"mailto:insight-developers@public.kitware.com">insight-developers@=
public.kitware.com</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, April 07, 2003 =
4:43=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Insight-developers] =
Visual=20
Studio 6 INTERNAL COMPILER ERROR</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>Hi all, in Visual Studio 6 I am =
getting a strange=20
error when I try to include Header A in Header B. When I include =
Header A=20
anywhere else, everything is=20
fine:<BR>D:\Insight\Code\Common\itkConceptChecking.h(96) : fatal error =
C1001:=20
INTERNAL COMPILER ERROR<BR> =20
(compiler file 'msc1.cpp', line 1794)=20
<BR> Please choose the =
Technical Support command on the Visual C++=20
<BR> Help menu, or =
open the=20
Technical Support help file for more information</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>The error points to the last line of =
the=20
following block of code from itkConceptChecking.h<BR>/** <BR> * =
Some=20
concept implementation details are adapted from the BOOST =
C++<BR> *=20
libraries (<A href=3D"http://www.boost.org">www.boost.org</A>). =
These are=20
marked with "(BOOST)" in the<BR> * corresponding=20
comment.<BR> */<BR>/** Namespace containing concept check =
implementation=20
details. */<BR>namespace Detail<BR>{<BR>template <typename T> =
struct=20
UniqueType {};<BR>template <int> struct UniqueType_int =
{};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I did a search on Google and noticed =
that this=20
error with msc1.cpp seems to be a fairly common and random =
error.=20
However, I fell upon this link at boost.org: <A=20
=
href=3D"http://lists.boost.org/MailArchives/boost/msg36520.php">http://li=
sts.boost.org/MailArchives/boost/msg36520.php</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I also found this thread from the itk =
users list,=20
but I have SP 5.<BR><A=20
=
href=3D"http://www.itk.org/pipermail/insight-users/2002-February/000100.h=
tml">http://www.itk.org/pipermail/insight-users/2002-February/000100.html=
</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Any ideas about what is going on? Is =
there some=20
sort of error propogation from Boost to itkConceptChecking.h? Any =
known=20
fixes?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>Thanks,<BR>Robert</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_001A_01C2FD27.16005E70--