Author
anonymous
over 3 years ago
Language
C++
Compiler
gcc 11.1.0
Options
Warnings
Boost 1.76.0
C++2b(GNU)
no pedantic
Author
anonymous
over 3 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.76.0/gcc-11.1.0/include -std=gnu++2b
In file included from prog.cc:6:
rime.hpp: In function 'int main()':
prog.cc:11:17: in 'constexpr' expansion of 'rime::literals::operator""_re(((const char*)"\\d{1,"), 5)'
rime.hpp:724:32: in 'constexpr' expansion of 'rime::patern_check<char>::start(std::basic_string_view<char>(str, len))'
rime.hpp:135:18: in 'constexpr' expansion of 'rime::patern_check<char>::disjunction(it, ((const char*)fin))'
rime.hpp:144:18: in 'constexpr' expansion of 'rime::patern_check<char>::alternative((* & it), ((rime::patern_check<char>::S)fin))'
rime.hpp:164:13: in 'constexpr' expansion of 'rime::patern_check<char>::term((* & it), ((rime::patern_check<char>::S)fin))'
rime.hpp:175:21: in 'constexpr' expansion of 'rime::patern_check<char>::quantifier((* & it), ((rime::patern_check<char>::S)fin))'
rime.hpp:210:24: in 'constexpr' expansion of 'rime::patern_check<char>::quantifier_prefix((* & it), ((rime::patern_check<char>::S)fin))'
rime.hpp:280:33: error: call to non-'constexpr' function 'void rime::REGEX_PATERN_ERROR(const char*)'
280 | REGEX_PATERN_ERROR(R"_(Quantifiers braces are not closed. [Example: `\d{0, 10` ] )_");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rime.hpp:58:8: note: 'void rime::REGEX_PATERN_ERROR(const char*)' declared here
58 | void REGEX_PATERN_ERROR(const char* str) {
| ^~~~~~~~~~~~~~~~~~
prog.cc:11:32: error: no matching function for call to 'std::__cxx11::basic_regex<char>::basic_regex(<brace-enclosed initializer list>)'
11 | std::regex re{R"_(\d{1,)_"_re};
| ^
In file included from /opt/wandbox/gcc-11.1.0/include/c++/11.1.0/regex:63,
from prog.cc:4:
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:761:9: note: candidate: 'template<class _FwdIter> std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::basic_regex(_FwdIter, _FwdIter, std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::locale_type, std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::flag_type) [with _FwdIter = _FwdIter; _Ch_type = char; _Rx_traits = std::__cxx11::regex_traits<char>]'
761 | basic_regex(_FwdIter __first, _FwdIter __last, locale_type __loc,
| ^~~~~~~~~~~
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:761:9: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:506:9: note: candidate: 'template<class _FwdIter> std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::basic_regex(_FwdIter, _FwdIter, std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::flag_type) [with _FwdIter = _FwdIter; _Ch_type = char; _Rx_traits = std::__cxx11::regex_traits<char>]'
506 | basic_regex(_FwdIter __first, _FwdIter __last,
| ^~~~~~~~~~~
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:506:9: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:486:9: note: candidate: 'template<class _Ch_traits, class _Ch_alloc> std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::basic_regex(const std::__cxx11::basic_string<_Ch_type, _Ch_traits, _Ch_alloc>&, std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::flag_type) [with _Ch_traits = _Ch_traits; _Ch_alloc = _Ch_alloc; _Ch_type = char; _Rx_traits = std::__cxx11::regex_traits<char>]'
486 | basic_regex(const std::basic_string<_Ch_type, _Ch_traits,
| ^~~~~~~~~~~
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:486:9: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:519:7: note: candidate: 'std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::basic_regex(std::initializer_list<_Tp>, std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::flag_type) [with _Ch_type = char; _Rx_traits = std::__cxx11::regex_traits<char>; std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::flag_type = std::regex_constants::syntax_option_type]'
519 | basic_regex(initializer_list<_Ch_type> __l, flag_type __f = ECMAScript)
| ^~~~~~~~~~~
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:519:7: note: conversion of argument 1 would be ill-formed:
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:473:7: note: candidate: 'std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::basic_regex(std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >&&) [with _Ch_type = char; _Rx_traits = std::__cxx11::regex_traits<char>]'
473 | basic_regex(basic_regex&& __rhs) noexcept = default;
| ^~~~~~~~~~~
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:473:7: note: conversion of argument 1 would be ill-formed:
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:466:7: note: candidate: 'std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::basic_regex(const std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >&) [with _Ch_type = char; _Rx_traits = std::__cxx11::regex_traits<char>]'
466 | basic_regex(const basic_regex& __rhs) = default;
| ^~~~~~~~~~~
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:466:7: note: conversion of argument 1 would be ill-formed:
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:456:7: note: candidate: 'std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::basic_regex(const _Ch_type*, std::size_t, std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::flag_type) [with _Ch_type = char; _Rx_traits = std::__cxx11::regex_traits<char>; std::size_t = long unsigned int; std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::flag_type = std::regex_constants::syntax_option_type]'
456 | basic_regex(const _Ch_type* __p, std::size_t __len,
| ^~~~~~~~~~~
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:456:7: note: candidate expects 3 arguments, 1 provided
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:440:7: note: candidate: 'std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::basic_regex(const _Ch_type*, std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::flag_type) [with _Ch_type = char; _Rx_traits = std::__cxx11::regex_traits<char>; std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::flag_type = std::regex_constants::syntax_option_type]'
440 | basic_regex(const _Ch_type* __p, flag_type __f = ECMAScript)
| ^~~~~~~~~~~
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:440:7: note: conversion of argument 1 would be ill-formed:
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:424:7: note: candidate: 'std::__cxx11::basic_regex< <template-parameter-1-1>, <template-parameter-1-2> >::basic_regex() [with _Ch_type = char; _Rx_traits = std::__cxx11::regex_traits<char>]'
424 | basic_regex()
| ^~~~~~~~~~~
/opt/wandbox/gcc-11.1.0/include/c++/11.1.0/bits/regex.h:424:7: note: candidate expects 0 arguments, 1 provided
Exit Code:
1