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]

c++/4557: Compiler error.



>Number:         4557
>Category:       c++
>Synopsis:       Compiler error.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 12 11:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Stevens
>Release:        unknown-1.0
>Organization:
>Environment:
 /util/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../sparc-sun-solaris2.7/include
 /util/lib/gcc-lib/sparc-sun-solaris2.7/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.
 /util/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/cc1plus SortTest.ii -quiet -dumpbase SortTest.cc -version -o SortTest.s
GNU C++ version 2.95.2 19991024 (release) (sparc-sun-solaris2.7) compiled by GNU C version 2.95.1 19990816 (release).
SortTest.cc: In function `int main()':
SortTest.cc:11: malformed floating constant
SortTest.cc:11: Internal compiler error in `convert_move', at expr.c:570
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions
>Description:
Initialized an array using Perl syntax by mistake. Compiler
told me to file bug report, so here it is. Complete code that
generated error:


#include <iostream>

using namespace std;

int main()
{
   int *a, *b;

   a = new int[10] = {16,2,6,8,12,14,4,18,10,0};
   b = new int[10] = {0..9};
   for (int i = 0;i<10;i++)
      cout<<b[i]<<" ";
}
>How-To-Repeat:
Compile the code.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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