+ 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
4 Antworten
+ 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
+ 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
+ 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.
+ 1
Naitomea Yes, its not beautiful but its more useful for deep hierarchies