PR c++/65072
* typeck.c (lookup_anon_field): Make sure we're dealing with the main
variant.
* g++.dg/cpp0x/pr65072.C: New test.
From-SVN: r221535
+2015-03-20 Marek Polacek <polacek@redhat.com>
+
+ PR c++/65072
+ * typeck.c (lookup_anon_field): Make sure we're dealing with the main
+ variant.
+
2015-03-19 Jason Merrill <jason@redhat.com>
PR c++/65046
{
tree field;
+ t = TYPE_MAIN_VARIANT (t);
+
for (field = TYPE_FIELDS (t); field; field = DECL_CHAIN (field))
{
if (TREE_STATIC (field))
+2015-03-20 Marek Polacek <polacek@redhat.com>
+
+ PR c++/65072
+ * g++.dg/cpp0x/pr65072.C: New test.
+
2015-03-20 Richard Biener <rguenther@suse.de>
PR middle-end/64715
--- /dev/null
+// PR c++/65075
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wno-pedantic" }
+
+template <typename> class C
+{
+ struct
+ {
+ int i;
+ };
+ auto operator*(const C m) -> decltype (m.i);
+};
+void fn1 (const C<float>);
+C<float> a;