[Bug c++/33858] Spurious warning with anonymous namespace and anonymous types

2009-05-08 Thread tobi at gcc dot gnu dot org
--- Comment #3 from tobi at gcc dot gnu dot org 2009-05-08 18:53 --- Note that the C-like equivalent doesn't warn (at least with g++ 4.1.2): $ cat user/t.cc namespace { struct { } t; } static struct { } s; $ g++ -c user/t.cc user/t.cc:3: warning: non-local variable ':: ::t' uses ano

[Bug c++/33858] Spurious warning with anonymous namespace and anonymous types

2007-12-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-12-02 22:24 --- Confirmed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCON

[Bug c++/33858] Spurious warning with anonymous namespace

2007-10-30 Thread ralgith at gmail dot com
--- Comment #1 from ralgith at gmail dot com 2007-10-30 18:23 --- Or be considered non-local, but NOT generate the warning. This is a fairly common coding convention, and this warning keeps jumping up and down at me in several programs I've compiled. -- ralgith at gmail dot com chang