public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: comer@mailru.com
To: gcc-gnats@gcc.gnu.org
Subject: c++/6273: GCC 2.95.3-5 prints internal error.
Date: Fri, 12 Apr 2002 06:26:00 -0000	[thread overview]
Message-ID: <20020412132032.32615.qmail@sources.redhat.com> (raw)


>Number:         6273
>Category:       c++
>Synopsis:       GCC 2.95.3-5 prints internal error.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 12 06:26:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Shandar
>Release:        2.95.3-5
>Organization:
>Environment:
Windows 2000 and Linux Mandrake.
>Description:
main.cpp: In instantiation of `TableMap<int>':
main.cpp:18:   instantiated from here
main.cpp:10: Internal compiler error 19970302.
main.cpp:10: Please submit a full bug report.
main.cpp:10: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
class Map
{
};

template<class Type> class TableMap : public Map
{
public:
	enum { Index_max = 10 };
	int items[Index_max+1];
};

template<class TypeA, class TypeB>
TypeA operator+(const TypeA& a, const TypeB& b)
{
	return TypeA(a)+=b;
}

TableMap<int> CharDFS;

int main(void)
{
}
>Fix:
I don't know how to fix the problem.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="main.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="main.cpp"

Y2xhc3MgTWFwDQp7DQp9Ow0KDQp0ZW1wbGF0ZTxjbGFzcyBUeXBlPiBjbGFzcyBUYWJsZU1hcCA6
IHB1YmxpYyBNYXANCnsNCnB1YmxpYzoNCgllbnVtIHsgSW5kZXhfbWF4ID0gMTAgfTsNCglpbnQg
aXRlbXNbSW5kZXhfbWF4KzFdOw0KfTsNCg0KdGVtcGxhdGU8Y2xhc3MgVHlwZUEsIGNsYXNzIFR5
cGVCPg0KVHlwZUEgb3BlcmF0b3IrKGNvbnN0IFR5cGVBJiBhLCBjb25zdCBUeXBlQiYgYikNCnsN
CglyZXR1cm4gVHlwZUEoYSkrPWI7DQp9DQoNClRhYmxlTWFwPGludD4gQ2hhckRGUzsNCg0KaW50
IG1haW4odm9pZCkNCnsNCn0NCg0K


             reply	other threads:[~2002-04-12 13:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-12  6:26 comer [this message]
2002-04-12 18:20 rodrigc

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=20020412132032.32615.qmail@sources.redhat.com \
    --to=comer@mailru.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).