Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190501 (experimental)

Options
Warnings
Optimization
Don't Use Boost
C++2a
no pedantic
Raw compiler options
-pedantic -pthread

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++2a -pedantic -pthread
prog.cc:1:11: error: 'FWP_DATA_TYPE' has not been declared
    1 | template <FWP_DATA_TYPE dataType>
      |           ^~~~~~~~~~~~~
prog.cc:4:32: error: 'impl' has not been declared
    4 |     using ValueType = typename impl::FWP_DATA_Accessor<dataType>::type;
      |                                ^~~~
prog.cc:6:19: error: expected ')' before 'fieldKey'
    6 |     Condition(GUID fieldKey, FWP_MATCH_TYPE matchType, ValueType value)
      |              ~    ^~~~~~~~~
      |                   )
prog.cc:7:25: error: expected unqualified-id before ',' token
    7 |     : fieldKey{fieldKey}, matchType{matchType}, value{value}, _dataType{dataType}
      |                         ^
prog.cc:7:47: error: expected unqualified-id before ',' token
    7 |     : fieldKey{fieldKey}, matchType{matchType}, value{value}, _dataType{dataType}
      |                                               ^
prog.cc:7:61: error: expected unqualified-id before ',' token
    7 |     : fieldKey{fieldKey}, matchType{matchType}, value{value}, _dataType{dataType}
      |                                                             ^
prog.cc:8:5: error: expected unqualified-id before '{' token
    8 |     {
      |     ^
prog.cc:12:5: error: 'GUID' does not name a type
   12 |     GUID fieldKey;
      |     ^~~~
prog.cc:13:5: error: 'FWP_MATCH_TYPE' does not name a type
   13 |     FWP_MATCH_TYPE matchType;
      |     ^~~~~~~~~~~~~~
prog.cc:14:5: error: 'FWP_DATA_TYPE' does not name a type
   14 |     FWP_DATA_TYPE _dataType;
      |     ^~~~~~~~~~~~~
prog.cc:15:5: error: 'ValueType' does not name a type
   15 |     ValueType value;
      |     ^~~~~~~~~
Exit Code:
1