public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/47199] New: [C++0x] ICE: expected class 'type', have 'declaration' (function_decl) in same_type_ignoring_top_level_qualifiers_p, at cp/typeck.c:1407 with -fno-elide-constructors
Date: Fri, 07 Jan 2011 02:06:00 -0000	[thread overview]
Message-ID: <bug-47199-4@http.gcc.gnu.org/bugzilla/> (raw)

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

           Summary: [C++0x] ICE: expected class 'type', have 'declaration'
                    (function_decl) in
                    same_type_ignoring_top_level_qualifiers_p, at
                    cp/typeck.c:1407 with -fno-elide-constructors
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22917
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22917
reduced testcase

Compiler output:
$ gcc -std=c++0x -fno-elide-constructors pr47199.C  
pr47199.C:14:34:   in constexpr expansion of 'S<<anonymous> >::s [with int
<anonymous> = 0, S<<anonymous> > = S<0>]()'
pr47199.C:14:36:   in constexpr expansion of 'S<0>((*(const S<0>*)(&
S<0>(-0x00000000000000001))))'
pr47199.C:14:36: internal compiler error: tree check: expected class 'type',
have 'declaration' (function_decl) in
same_type_ignoring_top_level_qualifiers_p, at cp/typeck.c:1407
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

May be related to PR47041, small changes to the testcase result in ICE
described there.

Tested revisions:
r168535 - crash
r165699 - code is rejected

Testcase was reduced from
libstdc++-v3/testsuite/20_util/duration/comparison_operators/constexpr.cc, it
fails with the same ICE


             reply	other threads:[~2011-01-07  1:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07  2:06 zsojka at seznam dot cz [this message]
2011-01-07  8:43 ` [Bug c++/47199] [4.6 Regression] " hjl.tools at gmail dot com
2011-01-19 20:57 ` jakub at gcc dot gnu.org
2011-02-21  6:50 ` jason at gcc dot gnu.org
2011-02-21 14:32 ` jason at gcc dot gnu.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-47199-4@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).