public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4557: Compiler error.
@ 2001-10-13 19:51 rodrigc
0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2001-10-13 19:51 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, kcs6, nobody
Synopsis: Compiler error.
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Oct 13 19:51:03 2001
State-Changed-Why:
With gcc 3.0.2 your example does not generate an
Internal Compiler Error, but produces the following
compilation error messages:
SortTest.cpp: In function `int main()':
SortTest.cpp:9: warning: new initializer lists extension is deprecated, please
see the documentation for details
SortTest.cpp:10: too many decimal points in floating constant
SortTest.cpp:10: warning: new initializer lists extension is deprecated, please
see the documentation for details
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4557&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/4557: Compiler error.
@ 2001-10-12 11:06 kcs6
0 siblings, 0 replies; 2+ messages in thread
From: kcs6 @ 2001-10-12 11:06 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-13 19:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-13 19:51 c++/4557: Compiler error rodrigc
-- strict thread matches above, loose matches on Subject: below --
2001-10-12 11:06 kcs6
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).