This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/16948] [3.5 Regression] Many new testsuite failures on hppa64-hp-hpux11.11
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2004 18:47:53 -0000
- Subject: [Bug middle-end/16948] [3.5 Regression] Many new testsuite failures on hppa64-hp-hpux11.11
- References: <20040809181318.16948.danglin@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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