[Bug c++/94310] using constructor inheritance breaks the code

2021-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94310 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |DUPLICATE --- Comment #5 from Andrew Pin

[Bug c++/94310] using constructor inheritance breaks the code

2021-10-18 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94310 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/94310] using constructor inheritance breaks the code

2020-04-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94310 --- Comment #3 from Marek Polacek --- Potential fix: --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -16982,6 +16982,15 @@ cp_parser_template_name (cp_parser* parser, decl = strip_using_decl (decl); + if (TREE_CODE (decl) == USING_DECL +

[Bug c++/94310] using constructor inheritance breaks the code

2020-04-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94310 --- Comment #2 from Marek Polacek --- The difference stems from the fact that in this test: template struct B { }; template struct A : public B... { using B::B...; // #1 using B::operator=...; // #2 }; int main() {} when parsing B in

[Bug c++/94310] using constructor inheritance breaks the code

2020-04-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94310 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 CC|