1 | $ clang++ --version |
---|
2 | Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn) |
---|
3 | Target: x86_64-apple-darwin11.1.0 |
---|
4 | Thread model: posix |
---|
5 | |
---|
6 | $ llvm-g++-4.2 --version |
---|
7 | i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) |
---|
8 | Copyright (C) 2007 Free Software Foundation, Inc. |
---|
9 | This is free software; see the source for copying conditions. There is NO |
---|
10 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
11 | |
---|
12 | $ g++ --version |
---|
13 | i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) |
---|
14 | Copyright (C) 2007 Free Software Foundation, Inc. |
---|
15 | This is free software; see the source for copying conditions. There is NO |
---|
16 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
17 | |
---|
18 | $ g++ sample.cpp -I/opt/local/include -L/opt/local/lib -lboost_system-mt -lboost_regex-mt -licudata -licui18n -licuuc |
---|
19 | |
---|
20 | takanori@hermit$ clang++ sample.cpp -I/opt/local/include -L/opt/local/lib -lboost_system-mt -lboost_regex-mt -licudata -licui18n -licuuc |
---|
21 | In file included from sample.cpp:2: |
---|
22 | In file included from /opt/local/include/boost/regex.hpp:31: |
---|
23 | In file included from /opt/local/include/boost/regex/v4/regex.hpp:70: |
---|
24 | /opt/local/include/boost/regex/v4/basic_regex_creator.hpp:1027:34: warning: equality comparison with extraneous |
---|
25 | parentheses [-Wparentheses] |
---|
26 | else if((state->type == syntax_element_long_set_rep)) |
---|
27 | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
28 | /opt/local/include/boost/regex/v4/basic_regex_creator.hpp:1027:34: note: remove extraneous parentheses around the |
---|
29 | comparison to silence this warning |
---|
30 | else if((state->type == syntax_element_long_set_rep)) |
---|
31 | ~ ^ ~ |
---|
32 | /opt/local/include/boost/regex/v4/basic_regex_creator.hpp:1027:34: note: use '=' to turn this equality comparison |
---|
33 | into an assignment |
---|
34 | else if((state->type == syntax_element_long_set_rep)) |
---|
35 | ^~ |
---|
36 | = |
---|
37 | /opt/local/include/boost/regex/v4/basic_regex_creator.hpp:1328:28: warning: equality comparison with extraneous |
---|
38 | parentheses [-Wparentheses] |
---|
39 | if((p->type == syntax_element_recurse)) |
---|
40 | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
41 | /opt/local/include/boost/regex/v4/basic_regex_creator.hpp:1328:28: note: remove extraneous parentheses around the |
---|
42 | comparison to silence this warning |
---|
43 | if((p->type == syntax_element_recurse)) |
---|
44 | ~ ^ ~ |
---|
45 | /opt/local/include/boost/regex/v4/basic_regex_creator.hpp:1328:28: note: use '=' to turn this equality comparison |
---|
46 | into an assignment |
---|
47 | if((p->type == syntax_element_recurse)) |
---|
48 | ^~ |
---|
49 | = |
---|
50 | 2 warnings generated. |
---|
51 | |
---|
52 | $ ./a.out |
---|
53 | な |
---|
54 | に |
---|
55 | か |
---|
56 | 書 |
---|
57 | く |
---|