https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66843
Bug ID: 66843 Summary: g++ outputting nonsense errors, won't compile operational program Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fvvnaqnd at grr dot la Target Milestone: --- I'm trying to compile this valid c++ code, as follows: int main(int argc, char** argv) { dildo #define char int int *ptr = 0; return EXIT_SUCCESS; } = while(1) break; /* https://www.gnu.org/licenses/gpl-3.0.en.html */ int i = 1 / 0; goto dildo; However, when trying to compile this with g++, the compiler spits out nonsense, unintelligible errors: shit.cpp: In function ‘int main(int, char**)’: shit.cpp:2:5: error: ‘dildo’ was not declared in this scope dildo ^ shit.cpp:5:12: error: ‘EXIT_SUCCESS’ was not declared in this scope return EXIT_SUCCESS; ^ shit.cpp: At global scope: shit.cpp:7:1: error: expected unqualified-id before ‘=’ token = ^ shit.cpp:11:11: warning: division by zero [-Wdiv-by-zero] int i = 1 / 0; ^ shit.cpp:12:1: error: expected unqualified-id before ‘goto’ goto dildo; ^ Please Respond