https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85977
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85977
--- Comment #5 from Marek Polacek ---
Author: mpolacek
Date: Wed Jun 6 17:51:19 2018
New Revision: 261241
URL: https://gcc.gnu.org/viewcvs?rev=261241&root=gcc&view=rev
Log:
PR c++/85977
* pt.c (unify): If ELTTYPE has no deducibl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85977
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85977
--- Comment #3 from Marek Polacek ---
// PR c++/85977, Incorrect handling of array reference size deduction
// { dg-do compile { target c++11 } }
template
void fn1 (const char (&)[N]) { static_assert (N == 3, "fn1");}
template
void fn2 (const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85977
--- Comment #2 from Marek Polacek ---
Seems like deducing the template parameter N fails because of the type
mismatch; parm is long int (element type of the array), while arg is int
(element type of {1, 2, 3}):
21789 /* We have already che
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85977
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|