Internal compile error

Shane Wegner shane@cm.nu
Sat Nov 13 15:24:00 GMT 1999


Hi,

I forgot a closing " in a strcpy and gcc had an internal compiler error. 
This isn't really important as the code compiled was faulty but I am
reporting it in case the same thing could happen for valid code.

continuum:~$ gcc test.c
test.c:6: unterminated string or character constant
test.c:6: possible real start of unterminated constant
continuum:~$ gcc -O1 test.c
test.c:6: unterminated macro call
test.c:8: unterminated string or character constant
test.c:1: possible real start of unterminated constant
cpp: Internal compiler error in escan', at
/home/itso/doko/src/gcc/gcc-2.95.2/src/gcc/cccp.c:3162
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for
instructions.
continuum:~$ cat test.c
#include <string.h>

int main()
{
char s[5];
strcpy(s, "test);
return 0;
}
continuum:~$
Regards,
Shane

-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: Shane Wegner <shane@cm.nu>

iQEVAwUBOC3w+toVIOQcD/pZAQHAogf+NnKWHUk9c3A65DNwRywvwD93j2U43FYJ
aHxX8kVD/y2w3fQw4LQWv98Evyru5hNys2O2NlCB/qo/yPbdfVtFY801/kwuFbku
yDy1tRJaviWIKL5OTTRIuxxyfINav+jUWzFyxLhj2h7gTcNLmY3MWODfXhOOmbkM
zcb5bZZPQoM3V76UhuLamIvb9uJkfAdbsoPFbGDwGXbA+OHMfK3HSD3qCSSmEJ+5
mqa36Q3HBLGvyMJqUfM9fyOuMQSuYGKey7sH9LwI1uWm1OTi00cGl7Uzcuq09Zaw
UMLYGH+HKhpz4j0ZJa2ZTxbqG4oXMqGfaMqas1WGYd86ZNoMdwlj2Q==
=BngS
-----END PGP SIGNATURE-----


More information about the Gcc-bugs mailing list