Package: g++-10
Version: 10.2.1-6
Severity: important
X-Debbugs-Cc: um4...@mutluit.com

Dear Maintainer,

the value std::regex_constants::multiline is supposed to be present
in C++17 and later (cf. for example 
https://en.cppreference.com/w/cpp/regex/basic_regex/constants ),
but actually it's missing in this compiler version (which supports C++17 as 
well even C++20).

Compiler switches used:
OPTS="-Wall -Wextra -W -Wformat -pedantic -pedantic-errors -std=gnu++20 
-frecord-gcc-switches"
g++ -g $OPTS blahfoo.cpp -lm -lssl -lcrypto -lz

The compilation error:
"
blahfoo.cpp:5122:59: error: ‘multiline’ is not a member of 
‘std::regex_constants’
 5122 |         if (sOpt == "multiline")  { f |= regex_constants::multiline; 
continue; }
      |                                                           ^~~~~~~~~
Command exited with non-zero status 1
"

$ g++ --version
g++ (Debian 10.2.1-6) 10.2.1 20210110

Expectation:
Since this compiler version supports C++17 (and even C++20), then it should have
the above said missing C++17 constant defined.



-- System Information:
Debian Release: 11.9
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-0.deb11.11-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages g++-10 depends on:
ii  gcc-10            10.2.1-6
ii  gcc-10-base       10.2.1-6
ii  libc6             2.31-13+deb11u6
ii  libgmp10          2:6.2.1+dfsg-1+deb11u1
ii  libisl23          0.23-1
ii  libmpc3           1.2.0-1
ii  libmpfr6          4.1.0-3
ii  libstdc++-10-dev  10.2.1-6
ii  libzstd1          1.4.8+dfsg-2.1
ii  zlib1g            1:1.2.11.dfsg-2+deb11u2

g++-10 recommends no packages.

Versions of packages g++-10 suggests:
pn  g++-10-multilib  <none>
pn  gcc-10-doc       <none>

-- no debconf information

Reply via email to