[PR c++/87269] Mark string operator overload in template defn.
authorNathan Sidwell <nathan@acm.org>
Fri, 16 Nov 2018 15:01:55 +0000 (15:01 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 16 Nov 2018 15:01:55 +0000 (15:01 +0000)
commitb1fe8605a12deddd1c5998ee6a78f1d17d507980
treef6b78fc2da5d03484ea2e0907d79b0cafefa3fae
parentac28df7e539038f3a1a34902c4bd5c8441a86f02
[PR c++/87269] Mark string operator overload in template defn.

https://gcc.gnu.org/ml/gcc-patches/2018-11/msg01458.html
PR c++/87269
* parser.c (lookup_literal_operator): Mark overload for keeping
when inside template.  Refactor.

* g++.dg/lookup/pr87269.C: New.

From-SVN: r266210
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/pr87269.C [new file with mode: 0644]