Questions tagged [internal-compiler-error]

Internal compiler error (ICE) is a bug in the compiler logic that prevents it from properly compiling or linking code that is otherwise syntactically correct. ICEs are usually fixed in later versions of the faulty compiler suite.

35 questions
13
votes
1 answer

gcc consumes all memory when optimizing -O3

I tried to compile the following function to see what gcc made of it: #include #include typedef struct giga { uint64_t g[0x10000000]; } giga; uint64_t addfst(giga const *gptr, size_t num) { uint64_t retval = 0; for…
EOF
  • 6,273
  • 2
  • 26
  • 50
9
votes
1 answer

VS2015 Internal Compiler Error when using inheriting constructors

Here's a 10-line C++11 program, vastly simplified from a program I'm working on: template class Base { public: template Base(S x) {} }; template class Child : public Base { public: using…
geometrian
  • 14,775
  • 10
  • 56
  • 132
8
votes
1 answer

Debugging internal compiler error (Java) to find offending source code

I've managed to write some code that causes an error during compilation using JDK 1.8.0_131 due to a JDK bug. I can reproduce the issue with only a few lines of code—but I can't find where in my project the error-causing pattern is being used. My…
John Dorian
  • 1,884
  • 1
  • 19
  • 29
6
votes
1 answer

Parenthesis around placement new operator for arrays

Playing around with placement new for arrays, I came up (by chance/mistake) with the following code: #include struct X{}; int main() { char buf[256]; std::size_t n = 10; X* p = new (buf) (X[n]); // incorrect way, parenthesis by…
vsoftco
  • 55,410
  • 12
  • 139
  • 252
6
votes
1 answer

expecting EOF, found ''

My 1st post here so I'll try to keep it simple. I'm trying to create a plot of some mass spectrometry data using Processing. I wanted to write a sketch to parse data from pseudo-XML into tables and then to plot this data as points on 2 axes (time,…
Ninja Chris
  • 324
  • 1
  • 3
  • 12
6
votes
2 answers

VBA compiler not breaking / trapping on errors and no error message, when using UDF in conditional formatting

See new development. I have a strange problem in Excel. I've got a Worksheet_Change event that I'm using and I'm trying to debug it. I save the program and open it back up and all of a sudden the compiler is not breaking on an error. In fact, it's…
5
votes
2 answers

Working Around a Visual Studio Internal Compiler Error With Nested Templated Variables

I'm trying to write code that will let me index into the parameter types of a function: template R function_return(R(*)(ARGS...)); template std::tuple
5
votes
4 answers

What do internal compiler error messages mean, and what can I do?

I was trying to compile my C++ program, which uses MPICH and NAG C library (I use NAG to generate random numbers), with a pgCC compiler. However, the compiler gave me the following error message: PGCC-S-0000-Internal compiler error. linearize: bad…
Vokram
  • 2,097
  • 4
  • 19
  • 27
4
votes
5 answers

fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1794)

I tried to compile a project with Visual Studio 6 SP6 and got the following: usbcore.h(18) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1794) Please choose the Technical Support command on the Visual C++ …
Sergey Podobry
  • 7,101
  • 1
  • 41
  • 51
4
votes
1 answer

Internal compiler error with nested functions in OpenMP parallel regions

I tried to call the Monte Carlo integration subroutine of GSL library to do some numerical calculation. Because my for loop is rather simple, meaning the results of different runs are independent, I expect it should be very straightforward to…
Leo Fang
  • 773
  • 5
  • 12
3
votes
2 answers

C++: for-loop is optimized into endless loop if function return statement is missing - compiler bug?

Take the following minimum example: #include bool test(){ for (int i = 0; i < 1024; i++) { printf("i=%d\n", i); } } int main(){ test(); return 0; } where the return statement in the test function is missing.…
3
votes
2 answers

C++11 constexpr causes compiler's internal error (C1001)

I am using Visual Studio 2015 Update 3. I get a fatal error: (code C1001) : An internal error has occurred in the compiler. Here is the code : template constexpr T epsilon = std::numeric_limits::epsilon(); I read it was fixed in…
user5806945
3
votes
1 answer

C++11 Code::Blocks GCC crashes when compiling variadic template of dependent member structs

I was testing an idea with variadic templates in C++ using Code::Blocks, and when I try to compile it, the build fails and says: ' in dependent_type_p, at cp/pt.c:19367 Please submit a full bug report, with preprocessed source if appropriate. See…
2
votes
1 answer

(C++) Internal compiler error when initializing with braces and rvalues

I encountered a strange issue that appears to depend on the initialization syntax I use. The compiler only reports an internal error, and only when I use an initializer list with rvalue elements. First I made a type to designate a value as an…
John P
  • 1,463
  • 3
  • 19
  • 39
2
votes
1 answer

Struct can be declared within method body, but only if it doesn't contain member field initializers. Compiler bug or not?

It took me a good hour to locate this issue. The following code class Test { public: void method(); int _member; }; void Test::method() { struct S { int s = 0; // same with int s {0}; }; _member; } int main(int argc,…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
1
2 3