Bug 20549 - [3.4/4.0/4.1 Regression] ICE in resolve_overloaded_unification on invalid code
Summary: [3.4/4.0/4.1 Regression] ICE in resolve_overloaded_unification on invalid code
Status: RESOLVED DUPLICATE of bug 21592
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: 4.0.2
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks: 21352
  Show dependency treegraph
 
Reported: 2005-03-19 08:46 UTC by Ivan Godard
Modified: 2005-07-25 13:22 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-07-12 06:01:03


Attachments
compiler output (-v) (742 bytes, text/plain)
2005-03-19 08:47 UTC, Ivan Godard
Details
source code (-save-temps, compressed) (140.96 KB, application/x-gzip)
2005-03-19 08:48 UTC, Ivan Godard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Godard 2005-03-19 08:46:42 UTC
 
Comment 1 Ivan Godard 2005-03-19 08:47:28 UTC
Created attachment 8421 [details]
compiler output (-v)
Comment 2 Ivan Godard 2005-03-19 08:48:04 UTC
Created attachment 8422 [details]
source code (-save-temps, compressed)
Comment 3 Andrew Pinski 2005-03-19 13:30:29 UTC
Reduced testcase:
template<typename t1, typename t2>
  t1 unique(t1 v1, t1 v2, t2 v3){}
struct row
{
  int begin() const ;
  int end() const;
};
template<int s>
void popSlot()
{
  row ops;
  unique(ops.begin, ops.end);
}


This is invalid code.
Comment 4 Kriang Lerdsuwanakij 2005-03-20 14:00:26 UTC
Here is the error message:

pr20549.C: In function 'void popSlot()':
pr20549.C:12: internal compiler error: in resolve_overloaded_unification, at
cp/pt.c:9579
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 5 Andrew Pinski 2005-03-24 18:10:14 UTC
: Search converges between 2003-07-08-trunk (#288) and 2003-07-09-trunk (#289).
Comment 6 Andrew Pinski 2005-07-22 21:13:01 UTC
Moving to 4.0.2 pre Mark.
Comment 7 Volker Reichelt 2005-07-25 13:22:48 UTC

*** This bug has been marked as a duplicate of 21592 ***