Thread overview
DDoc enum seg fault...
Oct 02, 2005
clayasaurus
Oct 07, 2005
clayasaurus
Oct 10, 2005
Walter Bright
October 02, 2005
this code causes a seg fault on linux.

/**
   a
*/
enum
{
   ONE
}
October 07, 2005
clayasaurus wrote:
> this code causes a seg fault on linux.
> 
> /**
>    a
> */
> enum
> {
>    ONE
> }


Anyone gonna confirm/deny this bug?

Just run 'dmd -D bug.d' or whatever command you use to generate documentation.

October 10, 2005
clayasaurus wrote:
> clayasaurus wrote:
> 
>> this code causes a seg fault on linux.
>>
>> /**
>>    a
>> */
>> enum
>> {
>>    ONE
>> }
> 
> 
> 
> Anyone gonna confirm/deny this bug?
> 
> Just run 'dmd -D bug.d' or whatever command you use to generate documentation.
> 

Yep, it's a segfault.

# dmd -D -v bug.d
parse     test
semantic  test
semantic2 test
semantic3 test
code      test
generating code for function 'main'
Segfault

It seems that the document generator crashes with untitled enums. Tried with "enum foo { ONE }" and it worked well.
October 10, 2005
"clayasaurus" <clayasaurus@gmail.com> wrote in message news:434680D0.3080309@gmail.com...
> Anyone gonna confirm/deny this bug?

Yes, it's a bug, and it'll be fixed in the next update.