aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2018-12-19 06:51:30 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2018-12-19 06:51:30 +0000
commitde62200f8374e1137b20ea9c85eb690169f43449 (patch)
tree31ff5fdea79ebfc4e3e256600b38f3932f6f858c /gcc/objc
parentbceca9b3f7d9cd935574652edc62a117c8736823 (diff)
downloadgcc-de62200f8374e1137b20ea9c85eb690169f43449.zip
gcc-de62200f8374e1137b20ea9c85eb690169f43449.tar.gz
gcc-de62200f8374e1137b20ea9c85eb690169f43449.tar.bz2
[PR87012] canonicalize ref type for tmpl arg
When binding an object to a template parameter of reference type, we take the address of the object and dereference that address. The type of the address may still carry (template) typedefs, but verify_unstripped_args_1 rejects such typedefs other than in the top level of template arguments. Canonicalizing the type we want to convert to right after any substitutions or deductions avoids that issue. for gcc/cp/ChangeLog PR c++/87012 * pt.c (convert_template_argument): Canonicalize type after tsubst/deduce. for gcc/testsuite/ChangeLog PR c++/87012 * g++.dg/cpp0x/pr87012.C: New. From-SVN: r267251
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions