compiling some template classes and got error re anonymous struct not in named type
Bug #544783 reported by
Dean Z. Douthat
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc |
Fix Released
|
Medium
|
|||
gcc-4.4 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: gcc-4.4
Ubuntu 9.10, gcc 4.4.1
Got error report about anonymous struct not inside of named type. This code compiled OK under Microsoft Visual Studio 2007. After error report, "confused by earlier errors, bailing out"
ProblemType: Crash
Architecture: amd64
Date: Tue Mar 23 00:05:01 2010
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/lib/
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelMo
Package: g++-4.4 4.4.1-4ubuntu9
ProcVersionSign
SourcePackage: gcc-4.4
Uname: Linux 2.6.31-20-generic x86_64
Changed in gcc: | |
status: | Unknown → Confirmed |
Changed in gcc: | |
status: | Confirmed → In Progress |
Changed in gcc: | |
importance: | Unknown → Medium |
status: | In Progress → Confirmed |
Changed in gcc: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
seen with 4.3, 4.4, 4.5 and trunk:
Starting program: /scratch/ packages/ gcc/4.4/ gcc-4.4- 4.4.4/build/ gcc/cc1plus -fpreprocessed ../../Vector3D.ii -quiet -dumpbase Vector3D.ii -mtune=generic -auxbase Vector3D -version -fpermissive -o /tmp/ccG8KwAM.s heapsize= 131072 7a26b5ced57e2b3 dd >::operator^ =(Vec<FP_ >&)': >::operator^ =(Vec<FP_ >&) [with FP_ = double]':
GNU C++ (Debian 4.4.4-6) version 4.4.4 (x86_64-linux-gnu)
compiled by GNU C version 4.4.4, GMP version 4.3.2, MPFR version 2.4.2-p1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-
Compiler executable checksum: 98feda5ccf2f6c2
In file included from Vector3D.cpp:4:
Vector3D.h: In member function 'Vec<FP_>& Vec<FP_
Vector3D.h:112: error: anonymous struct not inside named type
Vector3D.h: In member function 'Vec<FP_>& Vec<FP_
Vector3D.cpp:19: instantiated from here
Vector3D.h:112: error: anonymous struct not inside named type
Program received signal SIGSEGV, Segmentation fault. copy_and_ build (t=0x0, args=0x7ffff611 2fc0, complain= tf_warning_ or_error, decl=0x7ffff62b 2c80, function_p=<value optimized out>, constant_ expression_ p=<value optimized out>) at ../../src/ gcc/cp/ pt.c:11716
tsubst_
in_
integral_
11716 if (BASELINK_P (member))
(gdb) p member
$1 = (tree) 0x0