This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24396] New: Commented line ignores the next line after it
- From: "mina_1985_2002 at yahoo dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2005 00:11:04 -0000
- Subject: [Bug c++/24396] New: Commented line ignores the next line after it
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
when u type \\ at the end of commented line with //
the next line after it is ignored
int main()
{
cout << "Hello world";
//TEMP -------------------> DELETE PLEASE <----------------\\
sortWords(); <--This line of code will not be executed
}
To fix this problem u have to remove the \\
int main()
{
cout << "Hello world";
//TEMP -------------------> DELETE PLEASE <----------------
sortWords(); <--This line of code WILL be executed
}
Note:
The compiler doesnt generate any warning nor error in the first case
--
Summary: Commented line ignores the next line after it
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mina_1985_2002 at yahoo dot co dot uk
GCC build triplet: I really do not know what to fill here :)
GCC host triplet: I really do not know what to fill here :)
GCC target triplet: I really do not know what to fill here :)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24396