www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11948] New: Segfault using the word 'function' as function template parameter

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11948

           Summary: Segfault using the word 'function' as function
                    template parameter
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: michaelpm394 gmail.com


--- Comment #0 from michaelpm394 gmail.com 2014-01-19 03:37:18 PST ---
E.g. thing!(function)();

Program received signal SIGSEGV, Segmentation fault.
0x081220c9 in FuncLiteralDeclaration::toCBuffer(OutBuffer*, HdrGenState*) ()
(gdb) bt
#0  0x081220c9 in FuncLiteralDeclaration::toCBuffer(OutBuffer*, HdrGenState*)
()
#1  0x0809f8f1 in TemplateInstance::toCBufferTiargs(OutBuffer*, HdrGenState*)
()
#2  0x08063283 in TypeInstance::toCBuffer2(OutBuffer*, HdrGenState*, int) ()
#3  0x08066cdb in TypeFunction::toCBufferWithAttributes(OutBuffer*,
Identifier*, HdrGenState*, TypeFunction*, TemplateDeclaration*) ()
#4  0x08066e93 in TypeFunction::toCBuffer(OutBuffer*, Identifier*,
HdrGenState*) ()
#5  0x080523a0 in Type::toChars() ()
#6  0x0807ecea in Parser::parseDeclarations(unsigned long long, unsigned char
const*) ()
#7  0x08070fa8 in Parser::parseDeclDefs(int, Dsymbol**) ()
#8  0x0807f40d in Parser::parseModule() ()
#9  0x0804f88c in Module::parse() ()
#10 0x0804c16f in tryMain(unsigned int, char const**) ()
#11 0x08049c5b in main ()

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 19 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11948


hsteoh quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |hsteoh quickfur.ath.cx
           Severity|normal                      |critical


--- Comment #1 from hsteoh quickfur.ath.cx 2014-01-19 08:04:08 PST ---
Confirmed compiler segfault on git HEAD, Linux/64.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 19 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11948


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |DUPLICATE


--- Comment #2 from yebblies <yebblies gmail.com> 2014-02-04 22:52:31 EST ---
*** This issue has been marked as a duplicate of issue 11982 ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 04 2014