This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15837] Optimization (of templatized functions?)


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-06 06:39 -------
Because undefined means just that, it can be defined any which way the compiler wants it to be defined 
and differently at different times too.
There can be diagnostic for undefined code but there are other bug reports about adding warnings for 
code like this.

I will note that one way to work around this is to use -fno-strict-aliasing.  Also the reason why it 
compiles fine with 3.3.3 and not 3.4.0 is because 3.4.0 is a stricter in following the C++ standard.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15837


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]