https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
--- Comment #9 from Marek Polacek ---
Author: mpolacek
Date: Fri Apr 5 21:22:40 2019
New Revision: 270178
URL: https://gcc.gnu.org/viewcvs?rev=270178&root=gcc&view=rev
Log:
PR c++/87145 - bogus error converting class type in template ar
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
--- Comment #7 from Marek Polacek ---
This fixes it. But is it the best fix?
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -8056,7 +8056,14 @@ convert_template_argument (tree parm,
t = canonicalize_type_argument (t, complain);
if (!type_de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
--- Comment #6 from Marek Polacek ---
Slightly different testcase:
struct S {
int val;
constexpr operator int() const {
return static_cast(val);
}
};
template
struct F { };
template
constexpr void foo() {
F f;
}
int
main()
{
fo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
--- Comment #5 from Marek Polacek ---
It's _strict since https://gcc.gnu.org/ml/gcc-patches/2010-09/msg02144.html --
that was a desirable change.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
--- Comment #4 from Marek Polacek ---
The fix for 77656 caused us to call convert_nontype_argument even for
value-dependent arguments, to perform the conversion in order to avoid a bogus
warning.
In this case, the argument is Pod{N}. The call t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
Richard Biener changed:
What|Removed |Added
Target Milestone|7.4 |7.5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
Richard Biener changed:
What|Removed |Added
Priority|P3 |P2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
--- Comment #2 from Jonathan Wakely ---
Ah, the regression started with the same revision as the ICE, r241425 (applying
the fix from r257311 to that revision fixes the ICE but gives the "taking the
address of temporary" error).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87145
Richard Biener changed:
What|Removed |Added
Known to work||6.3.0
Version|unknown
12 matches
Mail list logo