https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94869
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[10/11 Regression] Template |[10 Regression] Template
|argument |argument
|deduction/substitution |deduction/substitution
|failure with Howard |failure with Howard
|Hinnant's calendar library |Hinnant's calendar library
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Leo Carreon from comment #0)
> The following bit of code used to compile ok with g++ 9.2.1.
Are you sure? With 9.2 or 9.3 I get:
date.cc: In function 'int main()':
date.cc:6:18: error: 'local_time' is not a member of 'std::chrono'; did you
mean 'date::local_time'?
6 | std::chrono::local_time<std::chrono::milliseconds> loc_time;
| ^~~~~~~~~~
In file included from date.cc:1:
/home/jwakely/src/date/include/date/date.h:201:11: note: 'date::local_time'
declared here
201 | using local_time = std::chrono::time_point<local_t, Duration>;
| ^~~~~~~~~~
date.cc:6:54: error: expected primary-expression before '>' token
6 | std::chrono::local_time<std::chrono::milliseconds> loc_time;
| ^
date.cc:6:56: error: 'loc_time' was not declared in this scope; did you mean
'localtime'?
6 | std::chrono::local_time<std::chrono::milliseconds> loc_time;
| ^~~~~~~~
| localtime