------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-17 00:58 ------- Maybe if more C++ books actually talked about this issue, there would not be a problem (sorry I could not resists). Also warning about very valid and defined code even if it is a common mistake that beginers make. I would rather have people actually taught this rule than GCC warning about it.
"The real problem is that the code compiles and links and runs without problems, except it doesn't actually work." that should say doesn't actually work the way the person is expecting so it is working as the C++ standard says it should work. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Summary|Request for new warning |Request for warning for | |parser ambiguity of function | |declarations and variable | |declarations with | |initializations http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25814