This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17655] g++ getting SEGFAULT compilling the code with HUGE_VAL comparasions
- From: "programm at metrocom dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Sep 2004 18:13:17 -0000
- Subject: [Bug c++/17655] g++ getting SEGFAULT compilling the code with HUGE_VAL comparasions
- References: <20040924154023.17655.programm@metrocom.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From programm at metrocom dot ru 2004-09-24 18:13 -------
To bangerth@dealii.org:
Have you try to compile the preprocessed source, test1.cc?
It seems to me, the problem is releated to the expansion of
HUGE_VAL macro which can be system-dependent (for ex., I use
linux 2.2 kernel on my system):
template<typename T> void GetFromString()
{
if ((__extension__ ((union { unsigned char __c[8]; double __d; }) { __c: {
0, 0, 0, 0, 0, 0, 0xf0, 0x7f } }).__d)) {};
};
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17655