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/70859] Bad column number in type-generic function errors


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue May  3 18:03:42 2016
New Revision: 235832

URL: https://gcc.gnu.org/viewcvs?rev=235832&root=gcc&view=rev
Log:
        PR c/70859
        * input.c (expansion_point_location): New function.
        * input.h (expansion_point_location): Declare.

        * c-common.c (builtin_function_validate_nargs): Add location
        parameter.  Use it.
        (check_builtin_function_arguments): Add location and arguments
        parameters.  Use them.
        * c-common.h (check_builtin_function_arguments): Update declaration.

        * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
        check_builtin_function_arguments.

        * call.c (build_cxx_call): Pass location and vNULL down to
        check_builtin_function_arguments.

        * gcc.dg/pr70859.c: New test.
        * gcc.dg/pr70859-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr70859-2.c
    trunk/gcc/testsuite/gcc.dg/pr70859.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/input.c
    trunk/gcc/input.h
    trunk/gcc/testsuite/ChangeLog

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