Bug 12332 - [3.4 Regression] ICE in overload resolution
Summary: [3.4 Regression] ICE in overload resolution
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.4.0
: P2 critical
Target Milestone: 3.4.0
Assignee: Nathan Sidwell
URL:
Keywords: ice-on-valid-code
: 6730 10223 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-18 18:18 UTC by Nathan Sidwell
Modified: 2005-07-23 22:49 UTC (History)
4 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Sidwell 2003-09-18 18:18:31 UTC
template <unsigned D> class TPL;

template <typename T> struct X {
  int lower ();
  
  template <template <typename> class V>
  V<TPL<V<int>::d> > operator () ();
};

void Foo (X<int> &x) {
  x.lower ();
}

nathan@garibaldi:186>./cc1plus -quiet current/j.ii
current/j.ii: In instantiation of `X<int>':
current/j.ii:12:   instantiated from here
current/j.ii:8: internal compiler error: in lookup_member, at cp/search.c:1237

used to work in 3.2 and 3.3
Comment 1 Nathan Sidwell 2003-09-18 18:51:28 UTC
Here is a related bug, extern inlines are not processed correctly

extern inline void Foo () {}
static void Baz () { Foo (); }

We emit the body of Foo when using cc1plus, but not when using cc1
Comment 2 Nathan Sidwell 2003-09-18 19:09:03 UTC
sorry, that previous comment was for PR 12291
Comment 3 Nathan Sidwell 2003-09-19 09:52:04 UTC
2003-09-19  Nathan Sidwell  <nathan@codesourcery.com>

	PR c++/12232
	* pt.c (instantiate_class_template): Increment
	processing_template_decl around the tsubst of a template member
	function.
Comment 4 Nathan Sidwell 2003-09-19 09:52:16 UTC
fixed
Comment 5 Andrew Pinski 2003-09-20 16:32:57 UTC
Reopening since the patch to pt.c was not applied.
Comment 6 Kriang Lerdsuwanakij 2003-09-20 16:44:18 UTC
*** Bug 6730 has been marked as a duplicate of this bug. ***
Comment 7 Kriang Lerdsuwanakij 2003-09-20 16:44:56 UTC
*** Bug 10223 has been marked as a duplicate of this bug. ***
Comment 8 Andrew Pinski 2003-09-20 19:54:36 UTC
Fixed commited this time.