internal compiler error msvc 7.1

  • Thread starter Thread starter Rob
  • Start date Start date
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
 
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
 
Back
Top