]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Add some asserts in mangle.c
authorJason Merrill <jason@redhat.com>
Mon, 21 Dec 2020 22:31:16 +0000 (17:31 -0500)
committerJason Merrill <jason@redhat.com>
Tue, 22 Dec 2020 02:17:04 +0000 (21:17 -0500)
commit027935eec43173a89cd3eeace0b51967288ac075
tree2cf6e5680077a8e4292809d8d4e39d66fbfa406b
parent58fb912c15175f4444144b8a4ab52a4880b84994
c++: Add some asserts in mangle.c

The added asserts are places I noticed that we aren't adding the "on" to
distinguish an operator name from an expression involving the operator.
Hopefully that's because operator names never get there; if not, crash bug
reports will let us fix the issue.

gcc/cp/ChangeLog:

* mangle.c (write_member_name): Add assert.
(write_expression): Add asserts.
gcc/cp/mangle.c