public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "gprocida+abigail at google dot com" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/27660] New: abidw is confused by templated types with non-type parameters
Date: Mon, 29 Mar 2021 15:00:39 +0000	[thread overview]
Message-ID: <bug-27660-9487@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=27660

            Bug ID: 27660
           Summary: abidw is confused by templated types with non-type
                    parameters
           Product: libabigail
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: gprocida+abigail at google dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

This issue was noticed during a bulk check for duplicate, conflicting type
definitions in XML.

$ <tests/data/test-read-dwarf/PR22122-libftdc.so.abi egrep
'type-id-263|type-id-407|type-id-233' 
    <typedef-decl name='is_not_reference_tag' type-id='type-id-233'
filepath='src/third_party/boost-1.60.0/boost/optional/optional.hpp' line='219'
column='1' id='type-id-234'/>
      <typedef-decl name='false_' type-id='type-id-263'
filepath='src/third_party/boost-1.60.0/boost/mpl/bool_fwd.hpp' line='25'
column='1' id='type-id-233'/>
      <class-decl name='__anonymous_struct__' is-struct='yes'
is-anonymous='yes' naming-typedef-id='type-id-233' visibility='default'
is-declaration-only='yes' id='type-id-263'/>
      <typedef-decl name='true_' type-id='type-id-263'
filepath='src/third_party/boost-1.60.0/boost/mpl/bool_fwd.hpp' line='24'
column='1' id='type-id-407'/>
      <class-decl name='__anonymous_struct__' is-struct='yes'
is-anonymous='yes' naming-typedef-id='type-id-407' visibility='default'
is-declaration-only='yes' id='type-id-263'/>
      <class-decl name='__anonymous_struct__1' is-struct='yes'
is-anonymous='yes' visibility='default' is-declaration-only='yes'
id='type-id-263'/>

This seems to say:

234 is typedef 233 is_not_reference_tag
233 is typedef 263 false_
263 is a struct named by 233
407 is typedef 263 true_
263 is *also* a struct named by 407
263 is a struct

The Boost header in question contains:

template< bool C_ > struct bool_;

typedef bool_<true> true_;
typedef bool_<false> false_;

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2021-03-29 15:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-29 15:00 gprocida+abigail at google dot com [this message]
2021-12-02 13:43 ` [Bug default/27660] " gprocida at google dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-27660-9487@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=libabigail@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).