From 1ad820e32419c6ff9237962ec911e9c4eee79c4a Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 28 Nov 2008 12:06:27 -0500 Subject: PR5376: probe alias parsing tweaks --- parse.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'parse.cxx') diff --git a/parse.cxx b/parse.cxx index 1982eb44..7f1e5d2a 100644 --- a/parse.cxx +++ b/parse.cxx @@ -1073,6 +1073,8 @@ parser::parse_probe (std::vector & probe_ret, if (equals_ok && t && t->type == tok_operator && t->content == "=") { + if (pp->optional || pp->sufficient) + throw parse_error ("probe point alias name cannot be optional nor sufficient", pp->tok); aliases.push_back(pp); next (); continue; @@ -1080,6 +1082,8 @@ parser::parse_probe (std::vector & probe_ret, else if (equals_ok && t && t->type == tok_operator && t->content == "+=") { + if (pp->optional || pp->sufficient) + throw parse_error ("probe point alias name cannot be optional nor sufficient", pp->tok); aliases.push_back(pp); epilogue_alias = 1; next (); -- cgit