Skip to content

Compiling with clang gives: object backing the pointer will be destroyed at the end of the full-expression #218

@mingodad

Description

@mingodad
make[6]: Entering directory '/tmp/build-dad/src/frontend/SageIII'
...
Cxx_GrammarCopyMemberFunctions.C:11535:71: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
     SgTemplateArgumentPtrList::const_iterator source_args_iterator = get_args().begin(); 
                                                                      ^~~~~~~~~~
Cxx_GrammarCopyMemberFunctions.C:11553:64: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
     SgTemplateArgumentPtrList::const_iterator args_iterator = result->get_args().begin(); 
                                                               ^~~~~~~~~~~~~~~~~~
Cxx_GrammarCopyMemberFunctions.C:11750:72: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
     SgTemplateParameterPtrList::const_iterator source_args_iterator = get_args().begin(); 
                                                                       ^~~~~~~~~~
Cxx_GrammarCopyMemberFunctions.C:11768:65: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
     SgTemplateParameterPtrList::const_iterator args_iterator = result->get_args().begin(); 
                                                                ^~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions