https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65072
--- Comment #12 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Fri Mar 20 14:56:53 2015 New Revision: 221535 URL: https://gcc.gnu.org/viewcvs?rev=221535&root=gcc&view=rev Log: PR c++/65072 * typeck.c (lookup_anon_field): Make sure we're dealing with the main variant. * g++.dg/cpp0x/pr65072.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/pr65072.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog