internal compiler error msvc 7.1

R

Rob

The following causes an internal compiler error:

void f (int &a)
{
int (const &b) = a;
}

(Yes I know it's not correct c++).

Rob.


------ Build started: Project: glsl, Configuration: Debug Win32 ------

Compiling...

crash.cpp

[...]\sources\crash.cpp(4) : fatal error C1001: INTERNAL COMPILER ERROR

(compiler file 'msc1.cpp', line 2701)

Please choose the Technical Support command on the Visual C++

Help menu, or open the Technical Support help file for more information

Build log was saved at file://[...]\Debug\BuildLog.htm

[...] - 1 error(s), 0 warning(s)



---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped
 
D

David Lowndes

The following causes an internal compiler error:
void f (int &a)
{
int (const &b) = a;
}

Rob,

If that's all it takes in VC7.1 (I've not tried it), it appears to be
fixed for VS2005, the beta 1 compiler reports:

error C2143: syntax error : missing ')' before 'const'
error C2059: syntax error : ')'

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top