: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: duyang.seu at gmail dot com
Target Milestone: ---
Created attachment 46006
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46006&action=edit
the preprocessed fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89793
--- Comment #2 from du yang ---
Created attachment 46009
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46009&action=edit
GCC 7.3.1 source file dump
GCC version:
gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)
System Type:
CentOS Linu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89793
--- Comment #8 from du yang ---
>
> struct Message {
> template
> Message(T&& t) : s{t} { }
> string s;
> };
>
By the way, it works on both GCC 8 & 7, if change the code above as below
(change to use assignment),
struct Message {