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

            Bug ID: 82360
           Summary: tree check fail in get_inner_reference, at expr.c:6996
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 42260
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42260&action=edit
gzipped C++ source code

The attached c++ code, when compiled by today's trunk gcc, does this:

/usr/include/boost/smart_ptr/weak_ptr.hpp:109:82: internal compiler error: tree 
check: expected tree that contains ‘decl common’ structure, have
‘identifier_nod
e’ in get_inner_reference, at expr.c:6996
     BOOST_NOEXCEPT : px( r.px ), pn( static_cast< boost::detail::weak_count && 
>( r.pn ) )

The problem seems to exist between versions 253249 and 253276.

I'll have a go at reducing the code.

Reply via email to