public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: geb@attbi.com
To: gcc-gnats@gcc.gnu.org
Subject: c++/7394: <synopsis of the problem (one line)>
Date: Wed, 24 Jul 2002 11:16:00 -0000	[thread overview]
Message-ID: <20020724180440.0D38651FB@smbear.attbi.com> (raw)


>Number:         7394
>Category:       c++
>Synopsis:       <synopsis of the problem (one line)>
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 24 11:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gary Barnes
>Release:        3.0.1
>Organization:
>Environment:
System: Linux smbear.attbi.com 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --prefix=/usr/local
>Description:
Compiler says to submit a bug report.

>How-To-Repeat:

g++ -c foo.cc -g -MMD -frepo -ansi -pedantic -fshort-enums -W -Wall -Wundef \
-Wshadow -Wpointer_arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings \
-Wconversion -Wsign-compare -Wredundant-decls -Wunreachable-code -Wmissing-declarations \
-Winline -fmessage-length=99999 -Werror
foo.cc: In instantiation of `One::Two::One_Two<int>':
foo.cc:44:   instantiated from here
foo.cc:5: Internal compiler error in retrieve_specialization, at cp/pt.c:740
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


foo.cc has no #includes's.  The code is below.


namespace One {
    namespace Two {
        namespace Three {
            template <class Outer_t>
            class One_Two_Three {
            public:
                One_Two_Three () : I (2) {};
                int I;
                void In123 (int _I);
            };
        }
    }
}

namespace One {
    namespace Two {
        template <class Some_t>
        class One_Two {
        public:
            One_Two () : J (1) {};
            int J;
            void In12 (int _J);
        private:
            int K;
            template <class Outer_t>
            friend class One::Two::Three::One_Two_Three;
            typedef One::Two::Three::One_Two_Three <One_Two> Friend123;
            Friend123   Our_Friend;
        };
    }
}
#if 0
template <Outer_t>
void One::Two::Three::One_Two_Three <Outer_t>::In123 (int _I) {
    I = _I;
}

template <Some_t>
void One::Two::One_Two <Some_t>::In12 (int _J) {
    J = _J
}
#endif
int main (int, char**) {
    auto One::Two::One_Two <int>    X;
}

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


             reply	other threads:[~2002-07-24 18:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-24 11:16 geb [this message]
2002-08-08  9:06 Reichelt
2002-09-14  5:04 nathan

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=20020724180440.0D38651FB@smbear.attbi.com \
    --to=geb@attbi.com \
    --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).