Diagnostics for an unknown pragma?

B

BigMan

Should a compiler (according to the C++ standard) issue a warning (or
other kind of diagnostic message) when it encounters an unknown pragma
directive?
 
K

Ken Human

BigMan said:
Should a compiler (according to the C++ standard) issue a warning (or
other kind of diagnostic message) when it encounters an unknown pragma
directive?

Unknown pragmas are ignored. The compiler can issue a warning if it
wants to, but it doesn't have to.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,293
Messages
2,571,500
Members
48,187
Latest member
ashish_758

Latest Threads

Top