aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc-common.cc
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2023-07-11 22:14:18 -0700
committerAndrew Pinski <apinski@marvell.com>2023-09-14 07:29:43 -0700
commit4241415b8817d505e92144175c040a48b1cf2b9f (patch)
tree6691be9f6d271d143c54cc3bad0e08e365955b16 /gcc/ggc-common.cc
parent8ebb02dd6c9d190c84bf40259201e8e7327291f8 (diff)
downloadgcc-4241415b8817d505e92144175c040a48b1cf2b9f.zip
gcc-4241415b8817d505e92144175c040a48b1cf2b9f.tar.gz
gcc-4241415b8817d505e92144175c040a48b1cf2b9f.tar.bz2
Improve error message for if with an else part while in switch
While writing some match.pd code, I was trying to figure out why I was getting an `expected ), got (` error message while writing an if statement with an else clause. For switch statements, the if statements cannot have an else clause so it would be better to have a decent error message saying that explictly. OK? Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * genmatch.cc (parser::parse_result): For an else clause of an if statement inside a switch, error out explictly.
Diffstat (limited to 'gcc/ggc-common.cc')
0 files changed, 0 insertions, 0 deletions