www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - DDoc enum seg fault...

reply clayasaurus <clayasaurus gmail.com> writes:
this code causes a seg fault on linux.

/**
    a
*/
enum
{
    ONE
}
Oct 02 2005
parent reply clayasaurus <clayasaurus gmail.com> writes:
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.
Oct 07 2005
next sibling parent =?ISO-8859-1?Q?Jari-Matti_M=E4kel=E4?= <jmjmak invalid_utu.fi> writes:
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.
Oct 10 2005
prev sibling parent "Walter Bright" <newshound digitalmars.com> writes:
"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.
Oct 10 2005