]> gcc.gnu.org Git - gcc.git/commit
N3639 C++1y VLA diagnostics
authorJason Merrill <jason@redhat.com>
Thu, 9 May 2013 16:43:43 +0000 (12:43 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 9 May 2013 16:43:43 +0000 (12:43 -0400)
commita57dbdaac40dbaaaba5b6d9954829a5e6f630ae4
treec69b9ba944e0bd1c54e3eb3cab495fee009d3bf5
parent0138d6b24ff942e4ccd54e52c0dc619d6911c452
N3639 C++1y VLA diagnostics

* decl.c (grokdeclarator): Complain about reference, pointer, or
typedef to VLA.
(create_array_type_for_decl): Complain about array of VLA.
* pt.c (tsubst): Likewise.
* rtti.c (get_tinfo_decl): Talk about "array of runtime bound".
* semantics.c (finish_decltype_type): Complain about decltype of VLA.
* typeck.c (cp_build_addr_expr_1): Complain about VLA.
(cxx_sizeof_or_alignof_type): Likewise.

From-SVN: r198746
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/cp/rtti.c
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp1y/vla1.C [new file with mode: 0644]
This page took 0.054319 seconds and 5 git commands to generate.