Skip to content

BF: C <-> C++ syntax difference

Paul McCarthy requested to merge bf/c_cpp_syntax into master

Code which compiles fine with gcc raises an error with g++: error: new types may not be defined in a return type

Sounds reasonable to me - I never knew that such a travesty could pass as valid C code.

This code was previously only compiled by gcc in libgdc. But now, due to the recent refactor, this code is being #included in C++ files.

Edited by Paul McCarthy

Merge request reports