* function.c (pop_function_context_from): Don't reset reg_renumber.
* g++.dg/opt/pr18683-1.C: New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92452
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-12-20 Roger Sayle <roger@eyesopen.com>
+
+ PR middle-end/18683
+ * function.c (pop_function_context_from): Don't reset reg_renumber.
+
2004-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
PR middle-end/18776
outer_function_chain = p->outer;
current_function_decl = p->decl;
- reg_renumber = 0;
lang_hooks.function.leave_nested (p);
+2004-12-20 Roger Sayle <roger@eyesopen.com>
+
+ PR middle-end/18683
+ * g++.dg/opt/pr18683-1.C: New test case.
+
2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
PR other/19093
--- /dev/null
+// PR middle-end/18683
+// { dg-do compile }
+// { dg-options "-O0" }
+
+template<typename _CharT>
+struct basic_ostream
+{
+ basic_ostream& operator<<(int __n);
+};
+
+extern basic_ostream<char> cout;
+
+template<int> struct linear_congruential
+{
+ template<class CharT>
+ friend basic_ostream<CharT>&
+ operator<<(basic_ostream<CharT>& os,
+ const linear_congruential& lcg)
+ {
+ return os << 1;
+ }
+};
+
+void instantiate_all()
+{
+ linear_congruential<0> lcf;
+ cout << lcf;
+}
+