: minor
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: niemayer at isg dot de
When compiling:
--
#include
int test(double x) {
return isnan(x);
}
--
with
gcc-4.9.0 -Wconversion
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47987
--- Comment #1 from niemayer at isg dot de 2011-03-04 11:43:25 UTC ---
The line that gcc reports to cause the ICE contains:
if (offset_a2->preallocate(text_1.length())) {
"offset_a2" is an instance of class Array,
unsigned long>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47987
Summary: ICE on legal code (when attempting to inline
non-implicitly instantiated template member function)
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: critica
3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: niemayer at isg dot de
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35593
--- Comment #34 from niemayer at isg dot de 2008-01-17 17:02 ---
Can you suggest any kind of work-around? Any alternative to represent constant
arrays in C/C++?
The problem with leaving this bug open indefinitely is that there are existing
programs (as the Unicode-test-case I mentioned
--- Comment #2 from niemayer at isg dot de 2007-12-20 14:32 ---
I can second that problem for template member functions - in contrast to
non-template member functions, where the attribute works.
This gives a warning about deprecation as expected
--- Comment #29 from niemayer at isg dot de 2007-05-15 16:54 ---
That's sad - while memory gets cheaper, it has still not become cheap enough to
cope with that huge increase in memory usage imposed by gcc 4.2. Seems I have
to stick with 4.1 until that problem is fixed...
--
--- Comment #27 from niemayer at isg dot de 2006-12-13 11:37 ---
I would like to mention that this problem seems to have worsened a lot for the
current snapshots of gcc-4.2 (currently testing with 4.2.0 20061205
(prerelease)) when compiling with at least -O1 - maybe due to the static