This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243526 - inaccuracy tests (clang): trigraphs
Summary: inaccuracy tests (clang): trigraphs
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-03 13:58 UTC by soldatov
Modified: 2014-11-20 12:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-04-03 13:58:03 UTC
File: CXX/lex/lex.trigraph/p1.cpp
Errors:
CXX/lex/lex.trigraph/p1.cpp 3 unexpected token: ?
CXX/lex/lex.trigraph/p1.cpp 5 unexpected token: int
CXX/lex/lex.trigraph/p1.cpp 9 unexpected token: ]
CXX/lex/lex.trigraph/p1.cpp 11 unexpected token: )
CXX/lex/lex.trigraph/p1.cpp 13 unexpected token: ;
CXX/lex/lex.trigraph/p1.cpp 15 unexpected token: ?
CXX/lex/lex.trigraph/p1.cpp 17 unexpected token: >
CXX/lex/lex.trigraph/p1.cpp 19 unexpected token: ;
CXX/lex/lex.trigraph/p1.cpp 20 unexpected end of file

Code:
??=pragma // expected-warning {{trigraph converted to '#' character}}
int a = '??/0'; // expected-warning {{trigraph converted to '\' character}}
int b = 1 ??' 0; // expected-warning {{trigraph converted to '^' character}}
int c ??(1]; // expected-warning {{trigraph converted to '[' character}}
int d [1??); // expected-warning {{trigraph converted to ']' character}}
int e = 1 ??! 0; // expected-warning {{trigraph converted to '|' character}}
void f() ??<} // expected-warning {{trigraph converted to '{' character}}
void g() {??> // expected-warning {{trigraph converted to '}' character}}
int h = ??- 0; // expected-warning {{trigraph converted to '~' character}}
Comment 1 soldatov 2014-04-03 14:01:38 UTC
File: CXX/lex/lex.trigraph/p2.cpp
Errors:
CXX/lex/lex.trigraph/p2.cpp 3 unexpected token: ?

Code:
??=define arraycheck(a,b) a??(b??) ??!??! b??(a??) // expected-warning {{trigraph converted to '#' character}} expected-warning {{trigraph converted to '[' character}} expected-warning {{trigraph converted to ']' character}} expected-warning {{trigraph converted to '|' character}} expected-warning {{trigraph converted to '|' character}} expected-warning {{trigraph converted to '[' character}} expected-warning {{trigraph converted to ']' character}}
Comment 2 Alexander Simon 2014-05-26 12:00:04 UTC
Is it real P2?
Do you know user project where trigraphs are used?
Downgrade priority.