[Bug c++/48386] "Cannot declare static function inside another function"

2011-03-31 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48386 --- Comment #3 from Jonathan Wakely 2011-03-31 13:40:52 UTC --- (In reply to comment #2) > all works, so I have decide that is a bug, sorry for wasted time. It compiles, but it doesn't do what you think: it declares a function "b" not a variable

[Bug c++/48386] "Cannot declare static function inside another function"

2011-03-31 Thread zxfox at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48386 --- Comment #2 from zxfox at mail dot ru 2011-03-31 13:37:05 UTC --- (In reply to comment #1) > This is not a bug, G++ is correct. > > Are you trying to create a static variable? > > The rules of C++ say that "B b( A() )" is interpreted as a decl

[Bug c++/48386] "Cannot declare static function inside another function"

2011-03-31 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48386 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|