* parser.c (cp_parser_postfix_dot_deref_expression): Fix thinko.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198257
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-04-24 Jason Merrill <jason@redhat.com>
+
+ PR c++/53721
+ * parser.c (cp_parser_postfix_dot_deref_expression): Fix thinko.
+
2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
* typeck.c (cxx_sizeof_or_alignof_type): Change -Wpointer-arith
/* Unlike the object expression in other contexts, *this is not
required to be of complete type for purposes of class member
access (5.2.5) outside the member function body. */
- else if (scope != current_class_ref
+ else if (postfix_expression != current_class_ref
&& !(processing_template_decl && scope == current_class_type))
scope = complete_type_or_else (scope, NULL_TREE);
/* Let the name lookup machinery know that we are processing a
--- /dev/null
+// PR c++/53721
+// { dg-require-effective-target c++11 }
+
+struct A
+{
+ void f() {};
+ auto g() -> decltype(this->f())
+ {
+ }
+};