diff options
author | Andi Kleen <ak@linux.intel.com> | 2024-06-12 09:11:46 -0700 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2024-06-12 22:08:23 -0700 |
commit | d0379809a45f77d2dedb93a443aa1dd96d13c6e5 (patch) | |
tree | 4478b4634dff340c70ad1a8b171c5bec1968b9f1 /gcc/cp/parser.cc | |
parent | 6f1f1657cd7a8472b4a4aeef60f1c59606ee011b (diff) | |
download | gcc-d0379809a45f77d2dedb93a443aa1dd96d13c6e5.zip gcc-d0379809a45f77d2dedb93a443aa1dd96d13c6e5.tar.gz gcc-d0379809a45f77d2dedb93a443aa1dd96d13c6e5.tar.bz2 |
Parse close paren even when constexpr extraction fails
To get better error recovery.
gcc/cp/ChangeLog:
* parser.cc (cp_parser_asm_string_expression): Parse close
parent when constexpr extraction fails.
Diffstat (limited to 'gcc/cp/parser.cc')
-rw-r--r-- | gcc/cp/parser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index 98e8ca1..adc4e6f 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -22856,7 +22856,7 @@ cp_parser_asm_string_expression (cp_parser *parser) if (!cstr.type_check (tok->location)) return error_mark_node; if (!cstr.extract (tok->location, string)) - return error_mark_node; + string = error_mark_node; parens.require_close (parser); return string; } |