On 7 April 2014 09:37, Pavel Andrejs wrote: > Hi, > > I have a question regarding bug 45106 > (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45106). I know it was > closed as invalid, but I have a product, which relies on such > typecasts. I noticed that when I compile it with g++ version 4.4, it > crashes, but when I use g++ version 4.7 everything seems to work. My > question is if there were some changes regarding these typecasts and I > can rely on this in g++ 4.7 or whether this is just coincidence and I > need to rewrite the code. I don't think GCC was changed to support that intentionally, the code is still invalid and not guaranteed to work.