This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15837] Optimization (of templatized functions?)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2004 06:39:43 -0000
- Subject: [Bug c++/15837] Optimization (of templatized functions?)
- References: <20040605201151.15837.adruab@voria.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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