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