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]

Error compiling expression "float b = 1e4.*3"


Problem:  Internal compiler error.
Summary:  the expression "1e4.*3" produces the above error while "1e4*3"
does not.

System: PC with K6-III 400 running  Linux kernel 2.4.0-test5.

Included below is the test routine and the gcc output.

Sincerely,
Jason Maddi
(jamaddi@lbl.gov)

----------------- test routine ---------------------------

main()
{
        float b = 1e4.*3;
}


-----------------  gcc output ----------------------------

$ gcc -v --save-temps bugtest.C
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs

gcc version 2.95.2 19991024 (release)
 /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/cpp -lang-c++ -v
-D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__
-Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__
-D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586
-D__i586__ -D__pentium -D__pentium__ bugtest.C bugtest.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3

 /usr/local/include
 /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../i586-pc-linux-gnu/include

 /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search
path:
End of omitted list.
 /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/cc1plus bugtest.ii
-quiet -dumpbase bugtest.cc -version -o bugtest.s
GNU C++ version 2.95.2 19991024 (release) (i586-pc-linux-gnu) compiled
by GNU C version 2.95.2 19991024 (release).
bugtest.C: In function `int main()':
bugtest.C:4: Internal compiler error.
bugtest.C:4: Please submit a full bug report.
bugtest.C:4: See
<URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.


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