aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Martin <simon@nasilyan.com>2024-06-04 17:27:25 +0200
committerSimon Martin <simon@nasilyan.com>2024-06-04 17:44:52 +0200
commit54e5cbcd82e36f5aa8205b56880821eea25701ae (patch)
treedf7f8a9e6af44fa453cd2d5b4c6495e6e270bb70
parentcfbd8735359d84a2d716549415eac70e885167bf (diff)
downloadgcc-54e5cbcd82e36f5aa8205b56880821eea25701ae.zip
gcc-54e5cbcd82e36f5aa8205b56880821eea25701ae.tar.gz
gcc-54e5cbcd82e36f5aa8205b56880821eea25701ae.tar.bz2
Add missing space after seen_error in gcc/cp/pt.cc
I realized that I committed a change with a missing space after seen_error. This fixes it, as well as another occurrence in the same file. Apologies for the mistake - I'll commit this as obvious. gcc/cp/ChangeLog: * pt.cc (tsubst_expr): Add missing space after seen_error. (dependent_type_p): Likewise.
-rw-r--r--gcc/cp/pt.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/pt.cc b/gcc/cp/pt.cc
index edb94a0..8cbcf7c 100644
--- a/gcc/cp/pt.cc
+++ b/gcc/cp/pt.cc
@@ -20918,7 +20918,7 @@ tsubst_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl)
be using lambdas anyway, so it's ok to be
stricter. Be strict with C++20 template-id ADL too.
And be strict if we're already failing anyway. */
- bool strict = in_lambda || template_id_p || seen_error();
+ bool strict = in_lambda || template_id_p || seen_error ();
bool diag = true;
if (strict)
error_at (cp_expr_loc_or_input_loc (t),
@@ -28020,7 +28020,7 @@ dependent_type_p (tree type)
providing us with a dependent type. */
gcc_assert (type);
gcc_assert (TREE_CODE (type) != TEMPLATE_TYPE_PARM || is_auto (type)
- || seen_error());
+ || seen_error ());
return false;
}