d: Give consistent error message when attribute argument not a string constant
commit5959cf8217e90b1331170fce96d83dd796a2bd8d
authorIain Buclaw <ibuclaw@gdcproject.org>
Fri, 24 Jun 2022 13:30:13 +0000 (24 15:30 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Fri, 24 Jun 2022 18:54:03 +0000 (24 20:54 +0200)
treed6325f42811f2b1bfba3644220a5b93af623e325
parent91418c42089cd1cbe71edcd6b2f5b26559819372
d: Give consistent error message when attribute argument not a string constant

gcc/d/ChangeLog:

* d-attribs.cc (d_handle_section_attribute): Update error message.
(d_handle_symver_attribute): Likewise.
(d_handle_no_sanitize_attribute): Likewise.
(d_handle_visibility_attribute): Likewise.

gcc/testsuite/ChangeLog:

* gdc.dg/attr_section1.d: Update dg-error.
* gdc.dg/attr_visibility1.d: Likewise.
gcc/d/d-attribs.cc
gcc/testsuite/gdc.dg/attr_section1.d
gcc/testsuite/gdc.dg/attr_visibility1.d