diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-11-23 14:43:48 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-11-23 14:43:48 +0100 |
commit | d601708870ad8dc3ef935e440bf03394891d42e2 (patch) | |
tree | 46b12a4827396e8332b0797ca80629e6a6f2763d /libcpp | |
parent | 52a0ef696e1d7858fde1ded81ac8063a5768127c (diff) | |
download | gcc-d601708870ad8dc3ef935e440bf03394891d42e2.zip gcc-d601708870ad8dc3ef935e440bf03394891d42e2.tar.gz gcc-d601708870ad8dc3ef935e440bf03394891d42e2.tar.bz2 |
diagnostics: Fix selftest ICE in certain locales [PR107722]
As reported in the PR, since special_fname_builtin () call has been
introduced, the diagnostics code compares filename against _("<built-in>")
rather than "<built-in>", which means that if self tests are performed
with the string being translated, one self-test fails.
The following patch fixes that.
2022-11-23 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/107722
* diagnostic.cc (test_diagnostic_get_location_text): Test
special_fname_builtin () rather than "<built-in>" and expect
special_fname_builtin () concatenated with ":" for it.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions