[Bug c++/105061] [10 Regression] [c++2a+] anonymous bitfield templated offset rejected

2022-05-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105061

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Jakub Jelinek  ---
Fixed for 10.4 too.

[Bug c++/105061] [10 Regression] [c++2a+] anonymous bitfield templated offset rejected

2022-05-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105061

--- Comment #8 from CVS Commits  ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
:

https://gcc.gnu.org/g:3d8d22d7bd799fbdcddb4762a97c39d6107ee077

commit r10-10700-g3d8d22d7bd799fbdcddb4762a97c39d6107ee077
Author: Jakub Jelinek 
Date:   Wed Mar 30 09:16:41 2022 +0200

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  

PR c++/105061
* parser.c (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.

(cherry picked from commit 4f2795218a6ba6a7b7b9b18ca7a6e390661e1608)

[Bug c++/105061] [10 Regression] [c++2a+] anonymous bitfield templated offset rejected

2022-03-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105061

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
Summary|[10/11/12 Regression]   |[10 Regression] [c++2a+]
   |[c++2a+] anonymous bitfield |anonymous bitfield
   |templated offset rejected   |templated offset rejected
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org

--- Comment #7 from Jakub Jelinek  ---
Fixed for 11.3+ and 12.1+.