The following code was tried :
/* File1.c*/
#include<stdio.h>
#define _q "
int main()
{
printf(_q ABC _q);
}
When given the -E option, I get
int main()
{
printf(" ABC ");
}
but when the same code was compiled ( gcc File1.c ), then the following errors
were received :
7 : missing terminating " character
7 : missing terminating " character
7 : 'ABC' undeclared
This was the unexpected error(list) obtained from that code.
--
Summary: Unexpected Macro expansion leading to error
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: saurabh dot manchanda at yahoo dot co dot in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40369