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++/80227] [6/7/8 Regression] SFINAE ambiguity with a pointer to array argument


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Mar 16 18:56:01 2018
New Revision: 258604

URL: https://gcc.gnu.org/viewcvs?rev=258604&root=gcc&view=rev
Log:
        PR c++/80227 - SFINAE and negative array size.

        * decl.c (compute_array_index_type): Use
        build_converted_constant_expr and valid_constant_size_p.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/fntmpdefarg8.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/g++.dg/gomp/pr47963.C
    trunk/gcc/testsuite/g++.dg/init/new37.C
    trunk/gcc/testsuite/g++.dg/init/new44.C
    trunk/gcc/testsuite/g++.dg/ubsan/pr81530.C

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