This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54060] G++ warning mixes up anonymous types and anonymous namespaces


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |diagnostic
   Last reconfirmed|                            |2012-07-31
                 CC|                            |jason at gcc dot gnu.org
     Ever Confirmed|0                           |1
            Summary|[C++11] Lambda expression's |G++ warning mixes up
                   |type should not be in an    |anonymous types and
                   |anonymous namespace         |anonymous namespaces

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-31 19:15:21 UTC ---
The lambda isn't really in the anonymous namespace, the warning message is
misleading.  This also happens for non-lambda anonymous types, such as

typedef struct { } *A;

struct B
{
  A a;
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]