[Bug c++/60689] Bogus error with atomic::exchange

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 10 07:54:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60689

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Apr 10 07:54:08 2014
New Revision: 209267

URL: http://gcc.gnu.org/viewcvs?rev=209267&root=gcc&view=rev
Log:
    Backport from mainline
    2014-03-28  Jakub Jelinek  <jakub@redhat.com>

    PR c++/60689
    * c-tree.h (c_build_function_call_vec): New prototype.
    * c-typeck.c (build_function_call_vec): Don't call
    resolve_overloaded_builtin here.
    (c_build_function_call_vec): New wrapper function around
    build_function_call_vec.  Call resolve_overloaded_builtin here.
    (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
    Call c_build_function_call_vec instead of build_function_call_vec.
    * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
    * c-decl.c (finish_decl): Likewise.

    * c-common.c (add_atomic_size_parameter): When creating new
    params vector, push the size argument first.

    * c-c++-common/pr60689.c: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/pr60689.c
Modified:
    branches/gcc-4_8-branch/gcc/c-family/ChangeLog
    branches/gcc-4_8-branch/gcc/c-family/c-common.c
    branches/gcc-4_8-branch/gcc/c/ChangeLog
    branches/gcc-4_8-branch/gcc/c/c-decl.c
    branches/gcc-4_8-branch/gcc/c/c-parser.c
    branches/gcc-4_8-branch/gcc/c/c-tree.h
    branches/gcc-4_8-branch/gcc/c/c-typeck.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list