public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10867: Internal compiler error with constant enum
@ 2003-05-19 21:24 bangerth
0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-05-19 21:24 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, llewins, nobody
Synopsis: Internal compiler error with constant enum
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon May 19 21:17:56 2003
State-Changed-Why:
Confirmed. Fixed in 3.3, though, and broken again in 3.4.
However, it's a duplicate of a number of other reports, so
I close it.
Thanks anyway,
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10867
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/10867: Internal compiler error with constant enum
@ 2003-05-20 13:16 Wolfgang Bangerth
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Bangerth @ 2003-05-20 13:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/10867; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ices.utexas.edu>
To: Giovanni Bajo <giovannibajo@libero.it>
Cc: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>, <llewins@raytheon.com>
Subject: Re: c++/10867: Internal compiler error with constant enum
Date: Tue, 20 May 2003 08:15:38 -0500 (CDT)
> > Confirmed. Fixed in 3.3, though, and broken again in 3.4.
> > However, it's a duplicate of a number of other reports, so
> > I close it.
>
> Which PR is this duplicate of? I can't find it.
This is the
struct X {
static int f();
static const int i = sizeof(f);
};
problem, PR 9259 for example.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ices.utexas.edu
www: http://www.ices.utexas.edu/~bangerth/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/10867: Internal compiler error with constant enum
@ 2003-05-20 3:06 Giovanni Bajo
0 siblings, 0 replies; 4+ messages in thread
From: Giovanni Bajo @ 2003-05-20 3:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/10867; it has been noted by GNATS.
From: "Giovanni Bajo" <giovannibajo@libero.it>
To: "Wolfgang Bangerth" <bangerth@ices.utexas.edu>,
<gcc-prs@gcc.gnu.org>,
<gcc-bugs@gcc.gnu.org>,
<gcc-gnats@gcc.gnu.org>,
<nobody@gcc.gnu.org>,
<llewins@raytheon.com>
Cc:
Subject: Re: c++/10867: Internal compiler error with constant enum
Date: Tue, 20 May 2003 04:57:22 +0200
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10867
Wolfgang Bangerth wrote:
> Confirmed. Fixed in 3.3, though, and broken again in 3.4.
> However, it's a duplicate of a number of other reports, so
> I close it.
Which PR is this duplicate of? I can't find it.
Giovanni Bajo
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/10867: Internal compiler error with constant enum
@ 2003-05-19 16:36 llewins
0 siblings, 0 replies; 4+ messages in thread
From: llewins @ 2003-05-19 16:36 UTC (permalink / raw)
To: gcc-gnats; +Cc: llewins
>Number: 10867
>Category: c++
>Synopsis: Internal compiler error with constant enum
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 19 16:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Lloyd Lewins
>Release: gcc version 3.2
>Organization:
>Environment:
Cygwin
>Description:
The attached file generates the following error:
conversion.cc:8: warning: all member functions in class `Conversion<T, U>' are
private
conversion.cc: In instantiation of `const unsigned int Conversion<double, int>::
t':
conversion.cc:23: instantiated from `Conversion<double, int>'
conversion.cc:23: instantiated from here
conversion.cc:15: Internal compiler error in instantiate_decl, at cp/pt.c:10052
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="conversion.cc"
Content-Disposition: inline; filename="conversion.cc"
#include <vector>
#include <iostream>
using namespace std;
template<class T, class U>
class Conversion
{
typedef char Small;
class Big { char dummy[2]; };
static Small Test(U);
static Big Test(...);
static T MakeT();
public:
static const unsigned t = sizeof(MakeT());
enum {
exists = t
};
};
int main(void)
{
Conversion<double, int> d;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-05-20 13:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-19 21:24 c++/10867: Internal compiler error with constant enum bangerth
-- strict thread matches above, loose matches on Subject: below --
2003-05-20 13:16 Wolfgang Bangerth
2003-05-20 3:06 Giovanni Bajo
2003-05-19 16:36 llewins
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).