This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/16948] [3.5 Regression] Many new testsuite failures on hppa64-hp-hpux11.11


------- Additional Comments From jason at redhat dot com  2004-08-09 18:47 -------
Subject: Re:  New: Many new testsuite failures on
 hppa64-hp-hpux11.11

On 9 Aug 2004 18:13:22 -0000, "danglin at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> wrote:

> The code in question is the following:
>
> 29      std::auto_ptr<Derived> 
> 30      conversiontest08() { return std::auto_ptr<Derived>(new Derived); }
> 31
> 32      void
> 33      test08()
> 34      {
> 35        std::auto_ptr<Base> ptr;
> 36        ptr = conversiontest08();
> 37      }
>
> The code is apparently passing the address of ptr by invisible reference to
> conversiontest08 but the structure either hasn't been appropriately
> initialized, or conversiontest08 shouldn't be using the uninitialized
> struct.

conversiontest08 should be initializing ptr.  What does the
-fdump-tree-gimple output look like?

Thanks,
Jason


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]