Tis the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject x] [Author Index] [Thread Index] /tr>
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread&nbext]


>Number:         2410
>Category:       c++
>Synopsis:       ICE caused by mismed class types on externs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    signed
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 0:16:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Matt Emmerton
>Release:        2.95.2
>Organion:
>Environment:
FreeBSD 4.2-STABLE (Wed Feb 28 02:25:07 EST 2001)
>Description:
global data of one type erroneously renced via 'extern' as another type causes g++ to ICE.
>How-To-Repeat:
Compile this code:

#include <list>
#include;vector>

list<int> adt;
extern vector<int> adt;

int main(void)
{
}

and get this output:

test1.c:5: conflig types for 'class vector<int,allocator<int> > adt'
test1.c:4: previous declaraction as 'class list<int,alloc<int> > adt'
test1.c:4: Internal compiler error in `make_decl_rtl', at varasm.c:738
>Fix:

>Release-Note:
>it-Trail:
>Unformatted:


Index Nav: [Date Index] [Author Index] [Thread Inde>]
Message Nav: [Date Prev] HREF="msg02631.html">Date Next] [Thread Prev] [Thread Next]