Open Quuxplusone opened 12 years ago
Attached fib.cpp
(885 bytes, text/x-c++src): Application calculating Fibonacci seq at compile time
Hmm... we do print a warning with -pedantic, but it might be a good idea to print something by default in this case.
Ironically, we accept this by default for GCC compatibility. Looks like they upgraded this from pedwarn to permerror for C++ in 4.5 or 4.6. Bumping this from Extension to ExtWarn seems sensible to me.
GCC still treats this as a pedwarn in C, but it seems reasonable to me for us to give a warning by default in all language modes (though for C, we still wouldn't catch overflow, because the C ICE checker doesn't evaluate).
fib.cpp
(885 bytes, text/x-c++src)