From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30639 invoked by alias); 19 May 2003 16:36:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 30609 invoked by uid 71); 19 May 2003 16:36:00 -0000 Resent-Date: 19 May 2003 16:36:00 -0000 Resent-Message-ID: <20030519163600.30608.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, llewins@raytheon.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, llewins@raytheon.com Received: (qmail 24354 invoked by uid 48); 19 May 2003 16:33:09 -0000 Message-Id: <20030519163309.24353.qmail@sources.redhat.com> Date: Mon, 19 May 2003 16:36:00 -0000 From: llewins@raytheon.com Reply-To: llewins@raytheon.com To: gcc-gnats@gcc.gnu.org Cc: llewins@raytheon.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: llewins@raytheon.com Subject: c++/10867: Internal compiler error with constant enum X-SW-Source: 2003-05/txt/msg02099.txt.bz2 List-Id: >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' are private conversion.cc: In instantiation of `const unsigned int Conversion:: t': conversion.cc:23: instantiated from `Conversion' 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 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 #include using namespace std; template 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 d; }