diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-03-30 09:16:41 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-03-30 09:16:41 +0200 |
commit | 4f2795218a6ba6a7b7b9b18ca7a6e390661e1608 (patch) | |
tree | 17d8eaeb7f5ed3b9a63d5bc09270e1d125fd847f /gcc/gcov-io.cc | |
parent | d8e91994bad073b713f2b47bc6171f3a4e422562 (diff) | |
download | gcc-4f2795218a6ba6a7b7b9b18ca7a6e390661e1608.zip gcc-4f2795218a6ba6a7b7b9b18ca7a6e390661e1608.tar.gz gcc-4f2795218a6ba6a7b7b9b18ca7a6e390661e1608.tar.bz2 |
c++: Fox template-introduction tentative parsing in class bodies clear colon_corrects_to_scope_p [PR105061]
The concepts support (in particular template introductions from concepts TS)
broke the following testcase, valid unnamed bitfields with dependent
types (or even just typedefs) were diagnosed as typos (: instead of correct
::) in template introduction during their tentative parsing.
The following patch fixes that by not doing this : to :: correction when
member_p is true.
2022-03-30 Jakub Jelinek <jakub@redhat.com>
PR c++/105061
* parser.cc (cp_parser_template_introduction): If member_p, temporarily
clear parser->colon_corrects_to_scope_p around tentative parsing of
nested name specifier.
* g++.dg/concepts/pr105061.C: New test.
Diffstat (limited to 'gcc/gcov-io.cc')
0 files changed, 0 insertions, 0 deletions