Internal compiler error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Internal compiler error?

In the code example below is an error I can't really figure out how to deal with, I haven't previously encountered that message. I have an extended version of the snippet in Code::Blocks that runs just fine(same code = no error) that I'd like to publish here, but I don't really know how to solve the error. Some help is appreciated. https://code.sololearn.com/c1i4KHC9V12V/?ref=app

14th Jul 2018, 10:10 PM
Shadow
Shadow - avatar
4 Answers
+ 3
I think that your error its same like this https://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id=83227 Inspecting macros seem that SL run gcc 7.2 then its very probable that its same Anyway you can do this for work https://code.sololearn.com/cMBqtz1r6sSx/?ref=app
15th Jul 2018, 7:11 AM
KrOW
KrOW - avatar
+ 2
Well maybe there's a compiler bug on sololearn I've never used code::blocks myself but most likely it supports more than what sololearn compiler is able to support but there's probably a bug in sololearns compiler, i knew someone that ended up posting a C++ code for the purpose of connecting and listening on servers but sololearn wasn't able to compile it but when he tried it on another compiler it worked
14th Jul 2018, 11:22 PM
idris
+ 2
Thanks for your replies. I was confused because I have working nested initializer lists here on Sololearn, but it seems to be the bug you mentioned, KrOW. Anyway, until it is fixed, I will use the solution you suggested, although it doesn't look as appealing as before, but whatever.
16th Jul 2018, 9:40 AM
Shadow
Shadow - avatar
+ 1
Naitomea Yes, its not beautiful but its more useful for deep hierarchies
16th Jul 2018, 11:31 AM
KrOW
KrOW - avatar