Bug 20195 - [4.0 Regression] Internal compiler error on legal code
Summary: [4.0 Regression] Internal compiler error on legal code
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-02-24 15:49 UTC by John Romein
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: x86_64-redhat-linux
Target: x86_64-redhat-linux
Build: x86_64-redhat-linux
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 John Romein 2005-02-24 15:49:01 UTC
g++4 yields an internal compiler error in do_nonmember_using_decl, at
cp/name-lookup.c:2074 when compiling:

namespace std
{
  template<typename _Tp> class complex;
  template<typename _Tp> complex<_Tp> conj(const complex<_Tp>&);
}

using std::conj;


Kinds Regards,  John Romein

---

dr. John W. Romein
Stichting ASTRON (Netherlands Foundation for Research in Astronomy)
Oude Hoogeveensedijk 4
7991 PD  Dwingeloo
The Netherlands
Comment 1 Andrew Pinski 2005-02-24 17:36:25 UTC
I cannot reproduce this with gcc "4.0.0 20050224"
Comment 2 John Romein 2005-02-25 08:27:24 UTC
Probably the bug has already been solved then.  I used 4.0.0 20041214 (Red Hat
4.0.0-0.14.EL4), the one that has just been released by RedHat/CentOS.

(In reply to comment #1)
> I cannot reproduce this with gcc "4.0.0 20050224"

(In reply to comment #0)
> g++4 yields an internal compiler error in do_nonmember_using_decl, at
> cp/name-lookup.c:2074 when compiling:
> 
> namespace std
> {
>   template<typename _Tp> class complex;
>   template<typename _Tp> complex<_Tp> conj(const complex<_Tp>&);
> }
> 
> using std::conj;
> 
> 
> Kinds Regards,  John Romein
> 
> ---
> 
> dr. John W. Romein
> Stichting ASTRON (Netherlands Foundation for Research in Astronomy)
> Oude Hoogeveensedijk 4
> 7991 PD  Dwingeloo
> The Netherlands
Comment 3 Andrew Pinski 2005-02-25 12:33:37 UTC
So lets close it as fixed.