This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/849: gcc internal error stimulated by use of struct timeval
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/849: gcc internal error stimulated by use of struct timeval
- From: count0 at building2 dot co dot jp
- Date: 20 Nov 2000 03:16:13 -0000
- Reply-To: count0 at building2 dot co dot jp
>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: