https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84269

--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to David Malcolm from comment #4)
> And another, as reported at
> https://www.reddit.com/r/cpp/comments/84op5c/usability_improvements_in_gcc_8/
> dvtl76x/
> 
> > const auto s = strlen("test");
> > with gcc (trunk) gives the following error:
> > [x86-64 gcc (trunk) #1] error: 'strlen' was not declared in this scope
> > [x86-64 gcc (trunk) #1] note: suggested alternative: 'struct'

Confirmed (with r258277).  We definitely shouldn't suggest "struct" here, which
feels reminiscent of PR c++/81610 and PR c++/80567, but which appears to still
be unfixed.

Reply via email to