[Bug c++/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 11 01:36:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-11 01:36 -------
Something is really wrong here.
If we take the following TU:
void abort (void);
namespace std {   using ::abort;  }
void foo()
{
  using std::abort;
  abort();
}

We output a call to std::abort which does not exist at all.  Why are we doing that.
I think this is what is causing us to ICE in the first place.
With 3.4.0 and 3.3.x, we get a call to extern "C" abort which seems right but I think it is wrong still.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org, mmitchel at gcc dot gnu
                   |                            |dot org
          Component|debug                       |c++


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367



More information about the Gcc-bugs mailing list