This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/69736] [4.9/5/6 Regression] "error: too few arguments to function" in c++14 but not c++11


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

--- Comment #8 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Thu Feb 25 01:14:27 2016
New Revision: 233691

URL: https://gcc.gnu.org/viewcvs?rev=233691&root=gcc&view=rev
Log:
Fix PR c++/69736

gcc/cp/ChangeLog:

        PR c++/69736
        * cp-tree.h (REF_PARENTHESIZED_P): Adjust documentation.
        (maybe_undo_parenthesized_ref): Declare.
        * semantics.c (maybe_undo_parenthesized_ref): Split out from
        check_return_expr.
        (finish_call_expr): Use it.
        * typeck.c (check_return_expr): Use it.
        * pt.c (tsubst_copy_and_build) [INDIRECT_REF]: Retain the
        REF_PARENTHESIZED_P flag.

gcc/testsuite/ChangeLog:

        PR c++/69736
        * g++.dg/cpp1y/paren2.C: New test.


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]