public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52767] New: Default inits for structs in struct initializer lists: wrong "this" pointer
@ 2012-03-29 11:55 shatrov at gmail dot com
2012-03-29 12:42 ` [Bug c++/52767] " jakub at gcc dot gnu.org
2012-05-12 23:13 ` paolo.carlini at oracle dot com
0 siblings, 2 replies; 3+ messages in thread
From: shatrov at gmail dot com @ 2012-03-29 11:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52767
Bug #: 52767
Summary: Default inits for structs in struct initializer lists:
wrong "this" pointer
Classification: Unclassified
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: shatrov@gmail.com
Created attachment 27031
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27031
test case
Test case attached.
I see output like this:
$ ./a.out
0x7fff81c36e40 A()
&c: 0x7fff81c36e30
sizeof (c): 8
Should be: 0x7fff81c36e34 A()
I.e., offset to "A b" inside struct B should be 4, not 16.
$ g++ --version
g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
$ uname -mpi
x86_64 x86_64 x86_64
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/52767] Default inits for structs in struct initializer lists: wrong "this" pointer
2012-03-29 11:55 [Bug c++/52767] New: Default inits for structs in struct initializer lists: wrong "this" pointer shatrov at gmail dot com
@ 2012-03-29 12:42 ` jakub at gcc dot gnu.org
2012-05-12 23:13 ` paolo.carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-29 12:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52767
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-29 12:23:46 UTC ---
Seems to be fixed by http://gcc.gnu.org/viewcvs?view=revision&revision=158219
(i.e. for 4.6+).
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/52767] Default inits for structs in struct initializer lists: wrong "this" pointer
2012-03-29 11:55 [Bug c++/52767] New: Default inits for structs in struct initializer lists: wrong "this" pointer shatrov at gmail dot com
2012-03-29 12:42 ` [Bug c++/52767] " jakub at gcc dot gnu.org
@ 2012-05-12 23:13 ` paolo.carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-05-12 23:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52767
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Known to work| |4.6.2, 4.7.0, 4.7.1, 4.8.0
Resolution| |FIXED
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-12 23:03:56 UTC ---
Confirmed fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-12 23:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-29 11:55 [Bug c++/52767] New: Default inits for structs in struct initializer lists: wrong "this" pointer shatrov at gmail dot com
2012-03-29 12:42 ` [Bug c++/52767] " jakub at gcc dot gnu.org
2012-05-12 23:13 ` paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).