http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52561
Bug #: 52561
Summary: GCC is not throwing error if only one character '#' is
written in a line.
Classification: Unclassified
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi,
Gcc is not giving compilation error if character # is left alone in a line.
It can be followed by comments. below is any example.
Example 1:
#include <stdio.h>
#
#include <pthread.h>
#include <iostream>
<SOME CODE HERE>
Example 2:
#include <stdio.h>
#//#include <vector.h>
#include <pthread.h>
#include <iostream>
<SOME CODE HERE>
Thanks,
Servesh Singh
[email protected]