https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119969

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
```
$ clang++ -fsanitize=type -ggdb3 -O0 a.cxx -o a ; ./a ; echo $?
==3871530==ERROR: TypeSanitizer: type-aliasing-violation on address
0x6029869e1970 (pc 0x602986099344 bp 0x7ffd53fde640 sp 0x7ffd53fde5d0 tid
3871530)
WRITE of size 8 at 0x6029869e1970 with type any pointer accesses an existing
object of type D
    #0 0x602986099343 in privateInit(int) /tmp/a.cxx:33:23

==3871530==ERROR: TypeSanitizer: type-aliasing-violation on address
0x6029869e1970 (pc 0x602986098318 bp 0x7ffd53fde550 sp 0x7ffd53fde4e0 tid
3871530)
READ of size 8 at 0x6029869e1970 with type any pointer accesses an existing
object of type D
    #0 0x602986098317 in IteratorImp::operator++() /tmp/a.cxx:15:36

==3871530==ERROR: TypeSanitizer: type-aliasing-violation on address
0x6029869e1970 (pc 0x602986098cbf bp 0x7ffd53fde550 sp 0x7ffd53fde4e0 tid
3871530)
READ of size 8 at 0x6029869e1970 with type any pointer accesses an existing
object of type D
    #0 0x602986098cbe in IteratorImp::operator++() /tmp/a.cxx:17:18

0
```

Reply via email to