diff options
author | Patrick Palka <ppalka@redhat.com> | 2020-04-24 21:16:59 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2020-04-24 21:16:59 -0400 |
commit | 5e7e8b98f49eda9ffb9817d97975a211c87c5a53 (patch) | |
tree | 1f66407215327fc43c4a91aed1623e9ef015abf4 /gcc/fortran | |
parent | 018730326d878d98b85b1256ff220e76665ed97e (diff) | |
download | gcc-5e7e8b98f49eda9ffb9817d97975a211c87c5a53.zip gcc-5e7e8b98f49eda9ffb9817d97975a211c87c5a53.tar.gz gcc-5e7e8b98f49eda9ffb9817d97975a211c87c5a53.tar.bz2 |
c++: add "'requires' only available with ..." note
This adds a note suggesting to enable concepts whenever 'requires' is parsed as
an invalid type name with concepts disabled.
gcc/cp/ChangeLog:
* parser.c (cp_parser_diagnose_invalid_type_name): Suggest enabling
concepts if the invalid identifier is 'requires'.
gcc/testsuite/ChangeLog:
* g++.dg/concepts/diagnostic11.C: New test.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions