[Bug c++/63437] [4.9/5 regression][C++14] Parenthesized "movable but not copyable" object doesn't compile in return statement

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 9 18:05:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63437

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Oct  9 18:05:17 2014
New Revision: 216042

URL: https://gcc.gnu.org/viewcvs?rev=216042&root=gcc&view=rev
Log:
    PR c++/63437
    * cp-tree.h (REF_PARENTHESIZED_P): Also allow INDIRECT_REF.
    * semantics.c (force_paren_expr): And set it.
    * typeck.c (check_return_expr): And handle it.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/paren1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/typeck.c



More information about the Gcc-bugs mailing list