delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/12/01/08:09:42

From: jawalker AT beckman DOT com (Jack A Walker)
Subject: (none)
1 Dec 1998 08:09:42 -0800 :
Message-ID: <082566CC.0080CE49.00.cygnus.gnu-win32@svdatsmtpmta.dp.beckman.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

--0__=ePSgqsWZuo9lIYBcCkO6nPQiK000SmNi1sSap1DfngQJ0XGC8vHu1XKK
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline

I am a newby when it comes to implementing templates and I am having a
problem
with egcs in cygwin b20.  I am running NT 4.0 work station bld 1381 sp 3.
I hoped that
posting this would be helpful to the egcs developers and instructive for
me.

When I try to compile a  test program that includes my lamer fixed capacity
 string
template I get the following error from egcs:


   [main]
   C:\Cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib\i586-cygwin32\egcs-2.91
   .
   57\cc1plus.exe 1002 (0) handle_exceptions: Exception:
   STATUS_ACCESS_VIOLATION
   [main] cc1plus 1002 (0) handle_exceptions: Dumping stack trace to
   cc1plus.exe.co
   re

I have attached the sources and the core file.  My template, StringT,
doesn't appear to
me to do anything particularly advanced that would agitate an obscure
language feature.  Have I done anything wrong?

Jack Walker

(See attached file: str128t.h)(See attached file: junk.cpp)(See attached
file: cc1plus.exe.core)

--0__=ePSgqsWZuo9lIYBcCkO6nPQiK000SmNi1sSap1DfngQJ0XGC8vHu1XKK
Content-type: application/octet-stream; 
	name="str128t.h"
Content-Disposition: attachment; filename="str128t.h"
Content-transfer-encoding: base64

I2lmbmRlZiBfU1RSMTI4X0gNCiNkZWZpbmUgX1NUUjEyOF9IDQoNCiNpbmNsdWRlIDxzdGRsaWIu
aD4NCiNpbmNsdWRlIDxzdHJpbmcuaD4NCiNpbmNsdWRlIDxmc3RyZWFtLmg+DQoNCnN0YXRpYyBj
b25zdCBzaXplX3QgU1RSU1ogPSAxMjggOw0KDQpuYW1lc3BhY2UNCnsNCiAgICB0ZW1wbGF0Z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og
ICAgICAgIG1lbWNweSgodm9pZCopZGF0YSwodm9pZCopcyxzaXplb2YoY2hhcikqbikgOw0KICAg
IH0NCiAgICBTdHJpbmdUIChjb25zdCBTdHJpbmdUICYgcykgeyBzdHJjcHkoZGF0YSxzLmRhdGEp
IDsgfQ0KICAgIFN0cmluZ1QgKGNvbnN0IFN0cmluZ1RCYXNlICYgeCkNCiAgICB7DQogICAgICAg
IGNvbnN0IGNoYXIgKiBzID0geC5fZGF0YV8oKSA7DQogICAgICAgIHNpemVfdCBuID0gbWluKHN0
cmxlbihzKSArIDEsIHN6KSA7DQogICAgICAgIG1lbWNweSgodm9pZCopZGF0YSwodm9pZCopcyxz
aXplb2YoY2hhcikqbikgOw0KICAgIH0NCiAgICBTdHJpbmdUICYgb3BlcmF0b3IgPSAoY29uc3Qg
U3RyaW5nVCAmIHMpDQogICAgew0KICAgICAgICBzdHJjcHkoZGF0YSxzLmRhdGEpIDsNCiAgICAg
ICAgcmV0dXJuICp0aGlzIDsNCiAgICB9DQogICAgU3RyaW5nVCAmIG9wZXJhdG9yID0gKGNvbnN0
IFN0cmluZ1RCYXNlICYgeCkNCiAgICB7DQogICAgICAgIGNvbnN0IGNoYXIgKiBzID0geC5fZGF0
YV8oKSA7DQogICAgICAgIHNpemVfdCBuID0gbWluKHN0cmxlbihzKSArIDEsIHN6KSA7DQogICAg
ICAgIG1lbWNweSgodm9pZCopZGF0YSwodm9pZCopcyxzaXplb2YoY2hhcikqbikgOw0KICAgICAg
ICByZXR1cm4gKnRoaXMgOw0KICAgIH0NCiAgICBTdHJpbmdUICYgb3BlcmF0b3IgPSAoY29uc3Qg
Y2hhciAqIHMpDQogICAgew0KICAgICAgICBzaXplX3QgbiA9IG1pbihzdHJsZW4ocykgKyAxLCBz
eikgOw0KICAgICAgICBtZW1jcHkoKHZvaWQqKWRhdGEsKHZvaWQqKXMsc2l6ZW9mKGNoYXIpKm4p
IDsNCiAgICAgICAgcmV0dXJuICp0aGlzIDsNCiAgICB9DQogICAgc2l6ZV90IExlbiAoKSB7IHJl
dHVybiBzdHJsZW4oZGF0YSkgOyB9DQogICAgaW50IG9wZXJhdG9yID09IChjb25zdCBTdHJpbmdU
ICYgcykNCiAgICB7DQogICAgICAgIHJldHVybiAoc3RyY21wKGRhdGEsIHMuZGF0YSkgPT0gMCkg
Ow0KICAgIH0NCiAgICBTdHJpbmdUICYgb3BlcmF0b3IgKz0gKGNvbnN0IFN0cmluZ1QgJiBzKQ0K
ICAgIHsNCiAgICAgICAgc2l6ZV90IG4gPSBzeiAtIExlbigpIC0gMSA7DQogICAgICAgIGlmICAo
biA+IDApDQogICAgICAgICAgICBzdHJuY2F0KGRhdGEscy5kYXRhLG4pIDsNCiAgICAgICAgcmV0
dXJuICp0aGlzIDsNCiAgICB9DQogICAgU3RyaW5nVCAmIG9wZXJhdG9yICs9IChjb25zdCBTdHJp
bmdUQmFzZSAmIHgpDQogICAgew0KICAgICAgICBjb25zdCBjaGFyICogcyA9IHguX2RhdGFfKCkg
Ow0KICAgICAgICBzaXplX3QgbiA9IHN6IC0gTGVuKCkgLSAxIDsNCiAgICAgICAgaWYgIChuID4g
MCkNCiAgICAgICAgICAgIHN0cm5jYXQoZGF0YSxzLG4pIDsNCiAgICAgICAgcmV0dXJuICp0aGlz
IDsNCiAgICB9DQogICAgflN0cmluZ1QgKCkge30NCiAgICB0eXBlZGVmIGNoYXIgX1N0cmluZyBb
c3ogKyAxXSA7DQogICAgY2hhciYgb3BlcmF0b3IgW10gKHNpemVfdCBpKSB7IHJldHVybiBkYXRh
W2ldIDsgfQ0KDQogICAgcHJpdmF0ZSA6DQoNCiAgICBfU3RyaW5nIGRhdGEgOw0KfSA7DQoNCnR5
cGVkZWYgU3RyaW5nVDxTVFJTWj4gU3RyaW5nIDsNCiNlbmRpZg0K

--0__=ePSgqsWZuo9lIYBcCkO6nPQiK000SmNi1sSap1DfngQJ0XGC8vHu1XKK
Content-type: application/octet-stream; 
	name="junk.cpp"
Content-Disposition: attachment; filename="junk.cpp"
Content-transfer-encoding: base64

I2luY2x1ZGUgPGlvc3RyZWFtPg0KI2luY2x1ZGUgInN0cjEyOHQuaCINCg0KLy91c2luZyBuYW1l
c3BhY2Ugc3RkOw0KDQppbnQgbWFpbiAoKQ0Kew0KICAgIFN0cmluZyB4ID0gIkphY2siOw0KICAg
IFN0cmluZyB5ID0gIldhbGtlciI7DQogICAgU3RyaW5nIHo7DQogICAgeiA9IHg7DQogICAgeiAr
PSAiICI7DQogICAgeiArPSB5Ow0KICAgIGNvdXQgPDwgeiA8PCBlbmRsOw0KICAgIHJldHVybiAw
IDsNCn0NCg==

--0__=ePSgqsWZuo9lIYBcCkO6nPQiK000SmNi1sSap1DfngQJ0XGC8vHu1XKK
Content-type: application/octet-stream; 
	name="cc1plus.exe.core"
Content-Disposition: attachment; filename="cc1plus.exe.core"
Content-transfer-encoding: base64

W21haW5dIGNjMXBsdXMgMTAwMiAoMCkgZXhjZXB0aW9uOiB0cmFwcGVkIQpbbWFpbl0gY2MxcGx1
cyAxMDAyICgwKSBleGNlcHRpb246IGNvZGUgMHhDMDAwMDAwNSBhdCAweDQ5RTMyRApbbWFpbl0g
Y2MxcGx1cyAxMDAyICgwKSBleGNlcHRpb246IGF4IDB4QTEyMjMwNiBieCAweEExMjI0NjAgY3gg
MHhBMTIyMzc4IGR4IDB4MApbbWFpbl0gY2MxcGx1cyAxMDAyICgwKSBleGNlcHRpb246IHNpIDB4
QTAzRDgwMCBkaSAweDI1REYyREMgYnAgMHgyNURGMUMwIHNwIDB4MjVERjE5NApbbWFpbl0gY2Mx
cGx1cyAxMDAyICgwKSBleGNlcHRpb246IGV4Y2VwdGlvbiBpczogU1RBVFVTX0FDQ0VTU19WSU9M
QVRJT04KW21haW5dIGNjMXBsdXMgMTAwMiAoMCkgc3RhY2s6IFN0YWNrIHRyYWNlOgpbbWFpbl0g
Y2MxcGx1cyAxMDAyICgwKSBzdGFjazogZnJhbWUgMDogc3AgPSAweDI1REVGQTgsIHBjID0gMHg2
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wMiAoMCkgc3RhY2s6IGZyYW1lIDEyOiBzcCA9IDB4MjVERkQxMCwgcGMgPSAweDQ4RkI4
NQpbbWFpbl0gY2MxcGx1cyAxMDAyICgwKSBzdGFjazogZnJhbWUgMTM6IHNwID0gMHgyNURGRDND
LCBwYyA9IDB4NDkzMjhCClttYWluXSBjYzFwbHVzIDEwMDIgKDApIHN0YWNrOiBmcmFtZSAxNDog
c3AgPSAweDI1REZEOTQsIHBjID0gMHg2MTAwNDM4QQpbbWFpbl0gY2MxcGx1cyAxMDAyICgwKSBz
dGFjazogZnJhbWUgMTU6IHNwID0gMHgyNURGRjg4LCBwYyA9IDB4NjEwMDQzQTgKW21haW5dIGNj
MXBsdXMgMTAwMiAoMCkgc3RhY2s6IEVuZCBvZiBzdGFjayB0cmFjZSAobW9yZSBzdGFjayBmcmFt
ZXMgbWF5IGJlIHByZXNlbnQpCg==

--0__=ePSgqsWZuo9lIYBcCkO6nPQiK000SmNi1sSap1DfngQJ0XGC8vHu1XKK--

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019