Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 3948
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Jason Merrill <jason@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: ksingh@oz.agile.tv
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
kulvinder.C kulvinder.C application/octet-stream 2003-05-21 15:16 230 bytes Edit
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 3948 depends on: Show dependency tree
Show dependency graph
Bug 3948 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2001-08-05 21:06
Quote from Nathan Sidwell

in main, we copy construct two C objects during the call to Foo.
Foo gets one of these by value, which is dtor'd in Foo. upon return
we dtor the other one. I think this is a problem with the pass-by-value
ABI method. It does look like a bug.

End Quote

Release:
GCC-3.0

Environment:
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../configure
Thread model: single
gcc version 3.0

How-To-Repeat:
Compile and run the attached program

------- Comment #1 From ksingh@oz.agile.tv 2001-08-05 21:06 -------
Fix:
None

------- Comment #2 From Gabriel Dos Reis 2001-08-13 04:16 -------
Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-Why: Boo!

------- Comment #3 From Gabriel Dos Reis 2001-08-13 04:16 -------
State-Changed-From-To: open->analyzed
State-Changed-Why: Confirmed as a horrible bug in GCC-3.0. A regression over 2.95

------- Comment #4 From Jason Merrill 2002-03-17 16:22 -------
Responsible-Changed-From-To: gdr->jason
Responsible-Changed-Why: me

------- Comment #5 From Jason Merrill 2002-03-18 03:41 -------
State-Changed-From-To: analyzed->closed
State-Changed-Why: Fixed for 3.1 by
    
            PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
            * class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
            type with a nontrivial destructor.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug