GCC Bugzilla – Attachment 4759 Details for
Bug 11646
[3.3/3.4 regression] ICE in commit_one_edge_insertion with -fnon-call-exceptions -fgcse -O
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Un-templatized testcase
pr11646.cpp (text/plain), 1.38 KB, created by
Eric Botcazou
on 2003-09-14 17:34:29 UTC
(
hide
)
Description:
Un-templatized testcase
Filename:
MIME Type:
Creator:
Eric Botcazou
Created:
2003-09-14 17:34:29 UTC
Size:
1.38 KB
patch
obsolete
>static void deallocate(void* __p, unsigned int __n) {} > >struct C { > int i; >}; > >struct __normal_iterator >{ > struct C* _M_current; > __normal_iterator(struct C* __i) : _M_current(__i) { } > struct C& operator*() const { return *_M_current; } > __normal_iterator operator+(const int& __n) const > { return __normal_iterator(_M_current + __n); } >}; > >struct allocator >{ > ~allocator() throw() {} > void deallocate(struct C* __p, unsigned int __n) > { deallocate(__p, __n * sizeof(struct C)); } >}; > >struct _Vector_alloc_base >{ > _Vector_alloc_base(const allocator& __a) {} > allocator _M_data_allocator; > struct C* _M_start; > struct C* _M_end_of_storage; > void _M_deallocate(struct C* __p, unsigned int __n) {} >}; > >struct _Vector_base : _Vector_alloc_base >{ > _Vector_base(const allocator& __a) : _Vector_alloc_base(__a) { } > ~_Vector_base() { _M_deallocate(0, _M_end_of_storage - _M_start); } >}; > >struct vector : _Vector_base >{ > vector(const allocator& __a = allocator()) : _Vector_base(__a) {} > __normal_iterator begin() { return __normal_iterator (_M_start); } > struct C& operator[](unsigned int __n) { return *(begin() + __n); } >}; > >struct A >{ > float l() const; > A operator-(const A &) const; > const A& operator=(float) const; >}; > >struct B >{ > float d(); >}; > >float f(const A& a, B& b) >{ > vector vc; > int index = vc[0].i; > A aa; > float d = (aa - a).l(); > if (d > b.d()) aa = 0; > return b.d(); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11646
:
4467
|
4756
| 4759