From 1bd3ed56ef1ac3a9147ff6384f66487c571dbc86 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 26 Feb 2014 11:51:14 -0500 Subject: [PATCH] re PR c++/60345 (r208159 causes Firefox build error) PR c++/60345 * g++.dg/conversion/ref1.C: New. From-SVN: r208176 --- gcc/testsuite/g++.dg/conversion/ref1.C | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gcc/testsuite/g++.dg/conversion/ref1.C diff --git a/gcc/testsuite/g++.dg/conversion/ref1.C b/gcc/testsuite/g++.dg/conversion/ref1.C new file mode 100644 index 000000000000..c0b3684341c8 --- /dev/null +++ b/gcc/testsuite/g++.dg/conversion/ref1.C @@ -0,0 +1,9 @@ +// PR c++/60345 + +struct C {}; +struct J : C {}; +struct A { + operator J* (); +}; +A p; +C* const& q = p;