D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 405 - typeof in TemplateParameterList causes compiletime segmentfault
Summary: typeof in TemplateParameterList causes compiletime segmentfault
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-06 15:49 UTC by Thomas Kühne
Modified: 2020-07-22 21:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Thomas Kühne 2006-10-06 15:49:11 UTC
#
# template square(typeof(x) x){
#     const square = x * x;
# }
# 
# const b = square!(1.2);
#
Comment 1 Walter Bright 2006-10-10 03:32:03 UTC
Fixed DMD 0.169
Comment 2 Thomas Kühne 2006-10-12 10:15:58 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail@puremagic.com schrieb am 2006-10-06:
> http://d.puremagic.com/issues/show_bug.cgi?id=405

> #
> # template square(typeof(x) x){
> #     const square = x * x;
> # }
> # 
> # const b = square!(1.2);
> #

Added to DStress as
http://dstress.kuehne.cn/nocompile/t/typeof_14_A.d
http://dstress.kuehne.cn/nocompile/t/typeof_14_B.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFLlAULK5blCcjpWoRAnKIAJ90zf9Q80eMgHvlWE/6j/kOyBOASACeP1H0
jhvVP+ddgSeW5jQCJ4Gl8R4=
=e2j0
-----END PGP SIGNATURE-----

Comment 3 Dlang Bot 2020-07-22 21:39:40 UTC
dlang-community/libdparse pull request #420 "Fix #405: Named entities not lexed correctly" was merged into master:

- 225a26bb4a75e02569e7a534860100f55a7f4341 by Jozef Rien:
  Fix 405: Named entities not lexed correctly
  
  That will close #405.
  
  Co-authored-by: MoonlightSentinel <moonlightsentinel@disroot.org>
  (Rebased and extended from PR #412)

https://github.com/dlang-community/libdparse/pull/420