aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2019-01-24 16:23:33 -0500
committerJason Merrill <jason@gcc.gnu.org>2019-01-24 16:23:33 -0500
commitb5d0294eafc305eaf15eaee914cccab148fb51f0 (patch)
tree67889379df002d31eddb52c1ab9859fbe535a995 /gcc/tree-vect-loop.c
parentd8b5a1a00d4f88aa82c9119095e2b4993444f6ee (diff)
downloadgcc-b5d0294eafc305eaf15eaee914cccab148fb51f0.zip
gcc-b5d0294eafc305eaf15eaee914cccab148fb51f0.tar.gz
gcc-b5d0294eafc305eaf15eaee914cccab148fb51f0.tar.bz2
PR c++/89001 - mangling of reference temporaries
It used to be the case that the mangled name of a reference temporary didn't need to be standardized, because all access would be through the reference. But now constant expressions can look through references and so different translation units need to agree on the address of a temporary in the initializer of a reference with vague linkage. * cp-tree.h (struct saved_scope): Add ref_temp_count. (current_ref_temp_count): New macro. * mangle.c (mangle_ref_init_variable): Use it. * typeck2.c (store_init_value): Clear it. * call.c (make_temporary_var_for_ref_to_temp): Copy public and comdat. From-SVN: r268252
Diffstat (limited to 'gcc/tree-vect-loop.c')
0 files changed, 0 insertions, 0 deletions