[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2020-01-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 --- Comment #10 from Marek Polacek --- (In reply to Will Wray from comment #7) > Fails to match for variadic arguments. Reopen or file a new bug? Definitely a new bug, please.

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2020-01-07 Thread wjwray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 --- Comment #9 from Will Wray --- The variadic unknown-bound 1st overload matches exact T(&)[] only https://godbolt.org/z/9qZpWX #include void cat(auto const(&...cstr)[]) { (((void)cstr,puts("G'bye")),...); } void cat(auto const(&...cstr)[6])

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2020-01-07 Thread wjwray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 --- Comment #8 from Will Wray --- Reduced example (but still with puts output) https://godbolt.org/z/Ttc2Za #include void cat(auto const(&...cstr)[]) { (puts(cstr),...); } // Comment out this next line[6] void cat(auto

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2020-01-07 Thread wjwray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #7 from

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2019-10-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2019-10-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 Bug 91364 depends on bug 88128, which changed state. Bug 88128 Summary: G++ should implement CWG 330 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88128 What|Removed |Added

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2019-10-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 Bug 91364 depends on bug 69531, which changed state. Bug 69531 Summary: Implement CWG 1307; Differently bounded array parameters https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69531 What|Removed |Added

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2019-10-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 --- Comment #5 from Marek Polacek --- Author: mpolacek Date: Wed Oct 9 20:58:00 2019 New Revision: 276771 URL: https://gcc.gnu.org/viewcvs?rev=276771=gcc=rev Log: Implement C++20 P0388R4, DR 1307, and DR 330. This patch implements P0388R4,

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2019-10-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 --- Comment #4 from Marek Polacek --- Note to myself: while messing with this, perhaps implement DR 330 too for good measure. Bug 88128.

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2019-10-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #3 from Marek Polacek

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2019-09-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2019-09-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 Bug 91364 depends on bug 91844, which changed state. Bug 91844 Summary: Implement CWG 2352, Similar types and reference binding https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91844 What|Removed |Added

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2019-09-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 --- Comment #1 from Marek Polacek --- Sort of depends on CWG 2352 Similar types and reference binding which changed the definition of "reference-related".

[Bug c++/91364] Implement P0388R4: Permit conversions to arrays of unknown bound

2019-08-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91364 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|