c++/849: gcc internal error stimulated by use of struct timeval
count0@building2.co.jp
count0@building2.co.jp
Sun Nov 19 19:26:00 GMT 2000
>Number: 849
>Category: c++
>Synopsis: gcc internal error stimulated by use of struct timeval
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 19 19:26:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Building2
>Release: 2.96
>Organization:
>Environment:
RedHat 7.0, gcc 2.96
>Description:
gcc internal error #390 stimulated by
reference to struct timeval type
>How-To-Repeat:
] cat t.cc
#define _REENTRANT
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
int main()
{
struct timeval t;
gettimeofday(&t, 0);
return(0);
}
] gcc -g -fpic -c t.cc -o t.o
t.cc: In function `int main ()':
t.cc:11: aggregate `timeval t' has incomplete type and cannot be
initialized
t.cc:13: Internal error #390.
t.cc:13: Internal compiler error in arg_assoc_type, at
../gcc/cp/decl2.c:4961
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list