On Fri, Mar 15, 2019 at 10:53:35AM -0300, Alexandre Oliva wrote:
> On Mar 14, 2019, Jason Merrill <ja...@redhat.com> wrote:
> 
> >> You can use VAR_P for this.
> 
> > OK with that change.
> 
> Thanks, I went ahead and also added a test before dereferencing it,
> since there was evidence shortly thereafter that it could possibly be
> NULL.
> 
> Here's what I'm installing.
> 
> 
> P0732R2 / C++ 2a introduce class literals as template parameters.  The
> front-end uses VAR_DECLs constructed from such literals to bind the
> template PARM_DECLs, but dwarf2out.c used to reject such VAR_DECLs.
> 
> Taking DECL_INITIAL from such VAR_DECLs enables the generation of
> DW_AT_const_value for them, at least when the class literal can
> actually be represented as such.
> 
> 
> for  gcc/ChangeLog
> 
>       PR c++/88534
>       PR c++/88537
>       * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
>       VAR_DECL args.
> 
> for  gcc/ChangeLog
> 
>       PR c++/88534
>       PR c++/88537
>       * g++.dg/cpp2a/pr88534.C: New.

This test fails with
pr88534.C:58:1: sorry, unimplemented: string literal in function template 
signature

Marek

Reply via email to