https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95369
Andrew Pinski changed:
What|Removed |Added
Target Milestone|--- |11.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95369
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95369
--- Comment #6 from CVS Commits ---
The master branch has been updated by Marek Polacek :
https://gcc.gnu.org/g:04afaf4575ff239279cfa34aff17101345451965
commit r11-1392-g04afaf4575ff239279cfa34aff17101345451965
Author: Marek Polacek
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95369
--- Comment #5 from CVS Commits ---
The master branch has been updated by Marek Polacek :
https://gcc.gnu.org/g:cecc73af4980004502f4c327b6c639125defb379
commit r11-1010-gcecc73af4980004502f4c327b6c639125defb379
Author: Marek Polacek
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95369
Marek Polacek changed:
What|Removed |Added
Last reconfirmed||2020-05-28
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95369
--- Comment #3 from Marek Polacek ---
I think the problem is that we never called digest_init prior calling
convert_nontype_argument.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95369
--- Comment #2 from Marek Polacek ---
This is not really about designated initializers; we wrongly reject this one
too:
struct S {
unsigned a;
unsigned b;
};
template struct X { };
void f()
{
X<{ 1u, 2u }> x;
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95369
--- Comment #1 from Marek Polacek ---
This is accepted fine (as it should be):
struct S {
int a;
int b;
};
int
main ()
{
S s{.a = 1, .b = 2};
}