public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hubicka at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/44894]  New: bogus warning: Use of type ‘struct nsNodeInfoManager’ with two mismatching declarations at field ‘mDocument’ [enabled by default]
Date: Fri, 09 Jul 2010 18:31:00 -0000	[thread overview]
Message-ID: <bug-44894-176@http.gcc.gnu.org/bugzilla/> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4907 bytes --]

jh@evans:/abuild/jh/mozilla-central/build9/content/base/src>
/abuild/jh/trunk-install/bin/g++ -flto -r -nostdlib tc/*.ii
In file included from ../../../../content/base/src/nsContentUtils.cpp:45:0:
../../../dist/include/jscntxt.h: In function ‘JSContext*
js_ContextFromLinkField(JSCList*)’:
../../../dist/include/jscntxt.h:2704:75: warning: invalid access to non-static
data member ‘JSContext::link’  of NULL object [-Winvalid-offsetof]
../../../dist/include/jscntxt.h:2704:75: warning: (perhaps the ‘offsetof’ macro
was used incorrectly) [-Winvalid-offsetof]
In file included from ../../../dist/include/nsCSSRuleProcessor.h:52:0,
                 from ../../../../content/base/src/nsGenericElement.cpp:139:
../../../../content/base/src/../../../layout/style/nsCSSRules.h: In member
function ‘nsCSSFontFaceRule* nsCSSFontFaceStyleDecl::ContainingRule()’:
../../../../content/base/src/../../../layout/style/nsCSSRules.h:292:77:
warning: invalid access to non-static data member ‘nsCSSFontFaceRule::mDecl’ 
of NULL object [-
Winvalid-offsetof]
../../../../content/base/src/../../../layout/style/nsCSSRules.h:292:77:
warning: (perhaps the ‘offsetof’ macro was used incorrectly)
[-Winvalid-offsetof]
../../../../content/base/src/../../../layout/style/nsCSSRules.h: In member
function ‘const nsCSSFontFaceRule* nsCSSFontFaceStyleDecl::ContainingRule()
const’:
../../../../content/base/src/../../../layout/style/nsCSSRules.h:299:83:
warning: invalid access to non-static data member ‘nsCSSFontFaceRule::mDecl’ 
of NULL object [-
Winvalid-offsetof]
../../../../content/base/src/../../../layout/style/nsCSSRules.h:299:83:
warning: (perhaps the ‘offsetof’ macro was used incorrectly)
[-Winvalid-offsetof]
In member function ‘Unlink’:
../../../../content/base/src/nsGenericElement.cpp:5581:1: warning: Use of type
‘struct nsNodeInfoManager’ with two mismatching declarations at field
‘mDocument’ [enabl
ed by default]
../../../dist/include/nsNodeInfoManager.h:71:232: note: original type declared
here
../../../dist/include/nsNodeInfoManager.h:157:16: note: field in mismatching
type declared here
In member function ‘SetAttrAndNotify’:
../../../../content/base/src/nsGenericElement.cpp:5581:1: warning: Use of type
‘struct nsNodeInfoManager’ with two mismatching declarations at field
‘mDocument’ [enabl
ed by default]
../../../dist/include/nsNodeInfoManager.h:71:232: note: original type declared
here
../../../dist/include/nsNodeInfoManager.h:157:16: note: field in mismatching
type declared here
../../../../content/base/src/nsGenericElement.cpp:5581:1: warning: Use of type
‘struct nsNodeInfoManager’ with two mismatching declarations at field
‘mDocument’ [enabl
ed by default]
../../../dist/include/nsNodeInfoManager.h:71:232: note: original type declared
here
../../../dist/include/nsNodeInfoManager.h:157:16: note: field in mismatching
type declared here
../../../../content/base/src/nsGenericElement.cpp:5581:1: warning: Use of type
‘struct nsNodeInfoManager’ with two mismatching declarations at field
‘mDocument’ [enabl
ed by default]
../../../dist/include/nsNodeInfoManager.h:71:232: note: original type declared
here
../../../dist/include/nsNodeInfoManager.h:157:16: note: field in mismatching
type declared here
../../../../content/base/src/nsGenericElement.cpp:5581:1: warning: Use of type
‘struct nsNodeInfoManager’ with two mismatching declarations at field
‘mDocument’ [enabl
ed by default]
../../../dist/include/nsNodeInfoManager.h:71:232: note: original type declared
here
../../../dist/include/nsNodeInfoManager.h:157:16: note: field in mismatching
type declared here
../../../../content/base/src/nsGenericElement.cpp:5581:1: warning: Use of type
‘struct nsNodeInfoManager’ with two mismatching declarations at field
‘mDocument’ [enabl
ed by default]
../../../dist/include/nsNodeInfoManager.h:71:232: note: original type declared
here
../../../dist/include/nsNodeInfoManager.h:157:16: note: field in mismatching
type declared here
../../../../content/base/src/nsGenericElement.cpp:5581:1: warning: Use of type
‘struct nsNodeInfoManager’ with two mismatching declarations at field
‘mDocument’ [enabl
ed by default]
../../../dist/include/nsNodeInfoManager.h:71:232: note: original type declared
here
../../../dist/include/nsNodeInfoManager.h:157:16: note: field in mismatching
type declared here
In member function ‘UnsetAttr’:
....


-- 
           Summary: bogus warning: Use of type ‘struct nsNodeInfoManager’
                    with two mismatching declarations at field ‘mDocument’
                    [enabled by default]
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hubicka at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44894


             reply	other threads:[~2010-07-09 18:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-09 18:31 hubicka at gcc dot gnu dot org [this message]
2010-07-09 18:35 ` [Bug lto/44894] bogus warning: Use of type ‘struct nsNodeInfoManager’ with two mismatching declarations at field ‘mDocument’ " hubicka at gcc dot gnu dot org
2010-07-10 10:08 ` rguenth at gcc dot gnu dot org
2010-07-10 10:40 ` rguenth at gcc dot gnu dot org
2010-07-10 11:01 ` rguenth at gcc dot gnu dot org
2010-07-10 11:21 ` rguenth at gcc dot gnu dot org
2010-07-10 12:10 ` rguenth at gcc dot gnu dot org

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-44894-176@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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).