You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from test.cpp:1:
In file included from PEGTL/include/tao/pegtl.hpp:10:
In file included from PEGTL/include/tao/pegtl/ascii.hpp:8:
In file included from PEGTL/include/tao/pegtl/eol.hpp:28:
In file included from PEGTL/include/tao/pegtl/internal/eol.hpp:11:
In file included from PEGTL/include/tao/pegtl/internal/../analysis/generic.hpp:9:
In file included from PEGTL/include/tao/pegtl/internal/../analysis/grammar_info.hpp:7:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/map:60:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/bits/stl_tree.h:72:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/bits/node_handle.h:39:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/optional:1032:27: error: use of class template 'optional' requires template arguments
template <typename _Tp> optional(_Tp) -> optional<_Tp>;
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/optional:451:11: note: template is declared here
class optional
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/optional:1032:40: error: expected ';' at end of declaration
template <typename _Tp> optional(_Tp) -> optional<_Tp>;
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/optional:1032:41: error: cannot use arrow operator on a type
template <typename _Tp> optional(_Tp) -> optional<_Tp>;
^
3 errors generated.
The text was updated successfully, but these errors were encountered:
No problem, just glad that we found it quickly. Or at least we found that it isn't an issue in the PEGTL. Assuming your agreement I'll close this issue for now...
FWIW, I just added GCC 7 automated testing to our .travis.yml. So at least stock GCC 7 is covered, as is Clang 4.0 with an older libstdc++. This will, of course, not solve the problem you encountered, but I'm afraid there is not much we can do about it anyways.
Not sure whether it's a clang's upstream bug or the lib's one, but anyway it doesn't build.
Sysinfo
System:
ArchLinux CURRENT
Test code
Compilers results
-std=
c++11
c++14
c++1z
c++17
Output
clang++ -std=c++1z test.cpp
:The text was updated successfully, but these errors were encountered: