------- Comment #11 from erh+gcc at nimenees dot com  2010-03-08 16:36 -------
(In reply to comment #6)
> You don't need a new warning to get what you want, as long as you put your
> functions in a namespace:
> 
...snip...
> error: 'void ns::myfunc(const char*)' should have been declared inside 'ns'

hmm... is there a way to have g++ put everything into some default namespace so
I always get errors like this?  If so, that would satisfy my needs.
I'd prefer not to have to change all my code to add the namespace stuff.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43272

Reply via email to