This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54060] G++ warning mixes up anonymous types and anonymous namespaces
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Jul 2012 19:15:21 +0000
- Subject: [Bug c++/54060] G++ warning mixes up anonymous types and anonymous namespaces
- Auto-submitted: auto-generated
- References: <bug-54060-4@http.gcc.gnu.org/bugzilla/>
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;
};