C 5.10 Does Not Allow Line Continuation in Single Line Comment

ID Number: Q30477

5.10

MS-DOS

buglist5.10 fixlist6.00

Summary:

The C 5.10 compiler does not recognize the line continuation character

in single line comments. For example, the following code extends a

single line comment onto a second line by ending the first line with a

backslash (\):

main()

{

foo(); // this is a comment that \

extends to the next line

}

Trying to compile this code results in several error messages from the

C 5.10 compiler because it is trying to interpret the second line of

the comment as code.

Microsoft has confirmed this to be a problem in C version 5.10. This

problem was corrected in C version 6.00.