]> git.ipfire.org Git - thirdparty/gcc.git/commit
Emit an error on variadic non extern functions
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 20 Nov 2023 10:19:46 +0000 (11:19 +0100)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 21 Nov 2023 11:16:34 +0000 (11:16 +0000)
commit33965b86fe26e1f352a6dc2a18d88b25a0b36ada
treef08a70d1d78bf83bf0104cbc64e7bc610e19dfc0
parentb1b0de60cd99742eb71dd909969e128ea0cd94ef
Emit an error on variadic non extern functions

Variadic regular functions were recently added in the parser as they
should be rejected in the ast validation pass. This commit add the ast
validation pass rejecting this kind of variadic arguments.

gcc/rust/ChangeLog:

* checks/errors/rust-ast-validation.cc (ASTValidation::visit): Add
ast validation pass to reject variadic arguments on regular functions.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/checks/errors/rust-ast-validation.cc