<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks for the report Miklos!<div class=""><br class=""></div><div class="">I filed <a href="https://llvm.org/bugs/show_bug.cgi?id=31592" class="">https://llvm.org/bugs/show_bug.cgi?id=31592</a> to track this.</div><div class=""><br class=""></div><div class="">Devin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 9, 2017, at 7:47 AM, Miklos Vajna via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">On Sun, Jan 8, 2017 at 12:37 AM, Miklos Vajna via cfe-dev<br class=""><<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:<br class=""><blockquote type="cite" class="">And sorry for not making the sample more minimal, this code is<br class="">originally part of LibreOffice's filter/source/msfilter/rtfutil.cxx,<br class="">this is already a quite small part of the preprocessed source. :-)<br class=""></blockquote><br class="">Here is an (I think) minimal reproducer:<br class=""><br class="">----<br class="">struct S;<br class=""><br class="">template <typename T> struct C {<br class="">public:<br class=""> C(const S &left_, const T &right_) : left(left_), right(right_) {}<br class=""><br class="">private:<br class=""> const S &left;<br class=""> const T &right;<br class="">};<br class=""><br class="">template <typename T, int N><br class="">inline T operator+(const T &left, const char (&right)[N]) {<br class=""> return C<const char[N]>(left, right);<br class="">}<br class=""><br class="">struct S {<br class=""> template <typename T> S(T &) {}<br class=""><br class=""> template <typename T> S(const C<T> &) {}<br class="">};<br class=""><br class="">S f() { return S("{") + "}"; }<br class="">----<br class=""><br class="">Thanks,<br class=""><br class="">Miklos<br class="">_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></div></blockquote></div><br class=""></div></body></html>