public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: gianni@mariani.ws
To: gcc-gnats@gcc.gnu.org
Subject: c++/10511: tt.cpp:61: Internal compiler error in decay_conversion, at cp/typeck.c:1679
Date: Sun, 27 Apr 2003 04:56:00 -0000	[thread overview]
Message-ID: <20030427044950.21638.qmail@sources.redhat.com> (raw)


>Number:         10511
>Category:       c++
>Synopsis:       tt.cpp:61: Internal compiler error in decay_conversion, at cp/typeck.c:1679
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 27 04:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     gianni@mariani.ws
>Release:        gcc (GCC) 3.2.1
>Organization:
>Environment:
Linux RH 7.2

Configured with: /home/gianni/downloads/gcc/gcc-3.2.1/configure --enable-threads=posix --enable-shared --prefix=/home/gianni/downloads/gcc/gcc-3.2.1-install
Thread model: posix
gcc version 3.2.1
>Description:

compiler says it has an error.  It seems like a parser error.  Complete code below the error output.

g++     tt.cpp   -o tt
tt.cpp: In member function `void Zoo::B::Fooey(Zoo::A*)':
tt.cpp:61: Internal compiler error in decay_conversion, at cp/typeck.c:1679
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make: *** [tt] Error 1

class Zoo
{

public:

        class B;

        class A
        {

                public:


                A                       * m_mem1;
                A                       * m_mem2;
                A                       * m_mem3;

                template <
                        A * A::*        w_aa,
                        A * A::*        w_ab,
                        A * A::*        w_ac,
                        A * B::*        w_ba,
                        A * B::*        w_bb,
                        A * B::*        w_bc
                >
                void TFUNC_A( A * i_1 )
                {
                        i_1->w_ac = i_1;
                }

        };

        class B
        {

                public:

                A                       * m_b1;
                A                       * m_b2;
                A                       * m_b3;

                template <
                        A * A::*        w_aa,
                        A * A::*        w_ab,
                        A * A::*        w_ac,
                        A * B::*        w_ba,
                        A * B::*        w_bb,
                        A * B::*        w_bc
                >
                void TFUNC_B( A * i_1 )
                {
                        i_1->TFUNC_A<w_aa,w_ab,w_ac,w_ba,w_bb,w_bc>( m_b1 );
                }

                typedef void ( B::* ff )( A * i_1 );

                void Fooey( A * i_1 )
                {
                        ff      gg = TFUNC_B< (&A::m_mem1),(&A::m_mem2),(&A::m_mem3),(&::Zoo::B::m_b1),(&::Zoo::B::m_b2),(&::Zoo::B::m_b3) >;

                        this->TFUNC_B< (&A::m_mem1),(&A::m_mem2),(&A::m_mem3),(&B::m_b1),(&B::m_b2),(&B::m_b3) >( i_1 );
                }

        };


};


int main()
{
        Zoo::A          a[1];
        Zoo::B          b[1];

        b->Fooey( a );
}



>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2003-04-27  4:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-27  4:56 gianni [this message]
2003-04-28 13:05 reichelt

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=20030427044950.21638.qmail@sources.redhat.com \
    --to=gianni@mariani.ws \
    --cc=gcc-gnats@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).