Ran into an odd MSVC compiler bug today: a missing parenthesis in a specific place, in a large source file, leads compiler into allocating all my RAM, which eventually led my computer to crash. I can reproduce it reliably.
If I uncomment the extra opening brace it reports error normally.
I can't bother investigating because it quickly puts the computer to a crawl, but I would guess it is getting into a weird parsing/tokenizing state where the remainder of the large source file is being processed as part of that expression, or something of that sorts. Also happens after updating toolchain.
@ocornut I tried to get this to repro so I could file an internal bug, but wasn’t able to. Gonna try again tomorrow or so :)
@DHowett Thanks Dustin! I reported it at https://developercommunity.visualstudio.com/t/Syntax-error-in-C-source-file-leading/11039000? it includes a video recording and logs+dumps but I believe the attachments are only available to internet devs. I have a repro branch I think I’ll minimize it and zip it.