www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Internal compiler erorr

reply Eric <eric x.com> writes:
I am getting this error when I compile:

Error: Internal Compiler Error: unsupported type const(string)

No line number is given.  Does anyone know what causes this?

compiler version = v2.071.0

-Eric
Apr 10 2016
parent reply Mike Parker <aldacron gmail.com> writes:
On Sunday, 10 April 2016 at 17:19:14 UTC, Eric wrote:
 I am getting this error when I compile:

 Error: Internal Compiler Error: unsupported type const(string)

 No line number is given.  Does anyone know what causes this?

 compiler version = v2.071.0

 -Eric
An ICE should always be considered a bug, no matter its cause. The thing to do here is to search bugzilla to see if your issue has already been reported and, if not, open a new one with a minimal reproducible test case.
Apr 10 2016
parent reply Eric <eric x.com> writes:
On Monday, 11 April 2016 at 00:55:44 UTC, Mike Parker wrote:
 On Sunday, 10 April 2016 at 17:19:14 UTC, Eric wrote:
 I am getting this error when I compile:

 Error: Internal Compiler Error: unsupported type const(string)

 No line number is given.  Does anyone know what causes this?

 compiler version = v2.071.0

 -Eric
An ICE should always be considered a bug, no matter its cause. The thing to do here is to search bugzilla to see if your issue has already been reported and, if not, open a new one with a minimal reproducible test case.
I don't see this specific error in bugzilla. Unfortunately I am getting this error in a large module that has "const string" all over. So I can't come up with a simple test case. The compiler does not seem to have a problem with just using a "const string" declaration.
Apr 15 2016
parent Anonymouse <asdf asdf.com> writes:
On Friday, 15 April 2016 at 16:53:27 UTC, Eric wrote:
 On Monday, 11 April 2016 at 00:55:44 UTC, Mike Parker wrote:
 I don't see this specific error in bugzilla.  Unfortunately I am
 getting this error in a large module that has "const string" all
 over.  So I can't come up with a simple test case.  The compiler
 does not seem to have a problem with just using a "const string"
 declaration.
If you want to investigate this is precisely where dustmite would shine.
Apr 15 2016