[previous] 0866 [next] [C] The string literal in a '#line' directive cannot be a 'wide string literal'.
Constraint violations REFERENCE - ISO:C90-6.8.4 Line Control - Constraints

This is a constraint error

This #line directive is followed by a wide string literal. #line is always followed by a line number and then, optionally, by a file name. The file name is always expressed as a string literal; a wide string literal is not allowed.

For example:


/*PRQA S 553,830,865,878,2017,3118 ++*/

#line 22 "file.h"                /* OK */

#line 45 L"file.h"               /* Message 0866 */


MISRA C:2012 Rules applicable to message 0866:

Rule-1.1  (Required) The program shall contain no violations of the standard C syntax and constraints, and shall not exceed the implementation's translation limits


See also:

QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents