-1

I am facing this error message:

error C1001: An internal error has occurred in the compiler

It appears just in the Debug mode. There is no clue about why this is happening. The compiler does not give me any hint to the line. When I click on the error it is take me to blank file called xxx.obj.

The platform:

  • Visual Studio 2013
  • Intel i7
  • Windows 8
Humam Helfawi
  • 19,566
  • 15
  • 85
  • 160

1 Answers1

1

I figured the problem after digging into the warnings I am getting. There was a suspecios one which is:

warning C4239: nonstandard extension used : 'argument' : conversion from 'T' to 'T&'

This warning is because of this line:

auto x = foo(bar{});

the function foo is declared as follow:

int foo(bar&);

This behavouir is not standared as was discuueed here: Is it possible to know if the parameter was defaulted . However, MSVS supports this behaviour as non-standard extension.

Usually it works well without any problem but due to non-known thing in this project it did not work.

After correcting it with these two lines:

bar temp{};
auto x = foo(temp);

Everything worked well.

Community
  • 1
  • 1
Humam Helfawi
  • 19,566
  • 15
  • 85
  • 160