Launchpad has imported 6 comments from the remote bug at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44625.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2010-06-22T08:35:14+00:00 Matthias Klose wrote: 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 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-heapsize=131072 Compiler executable checksum: 98feda5ccf2f6c27a26b5ced57e2b3dd In file included from Vector3D.cpp:4: Vector3D.h: In member function 'Vec<FP_>& Vec<FP_>::operator^=(Vec<FP_>&)': Vector3D.h:112: error: anonymous struct not inside named type Vector3D.h: In member function 'Vec<FP_>& Vec<FP_>::operator^=(Vec<FP_>&) [with FP_ = double]': Vector3D.cpp:19: instantiated from here Vector3D.h:112: error: anonymous struct not inside named type Program received signal SIGSEGV, Segmentation fault. tsubst_copy_and_build (t=0x0, args=0x7ffff6112fc0, complain=tf_warning_or_error, in_decl=0x7ffff62b2c80, function_p=<value optimized out>, integral_constant_expression_p=<value optimized out>) at ../../src/gcc/cp/pt.c:11716 11716 if (BASELINK_P (member)) (gdb) p member $1 = (tree) 0x0 Reply at: https://bugs.launchpad.net/gcc/+bug/544783/comments/2 ------------------------------------------------------------------------ On 2010-06-22T08:36:14+00:00 Matthias Klose wrote: Created attachment 20974 preprocessed source Reply at: https://bugs.launchpad.net/gcc/+bug/544783/comments/3 ------------------------------------------------------------------------ On 2010-06-22T09:21:23+00:00 Manu-gcc wrote: Confirmed in trunk. A reduce testcase would be helpful: http://gcc.gnu.org/bugs/minimize.html Reply at: https://bugs.launchpad.net/gcc/+bug/544783/comments/5 ------------------------------------------------------------------------ On 2010-06-22T11:08:01+00:00 Rguenth wrote: Reduced testcase (but with more and slightly different errors) template<typename FP_> class Vec { Vec& operator^=(Vec& rhs) { union { struct {FP_ x,y,z;}; }; X = y*rhs.z() - z*rhs.y(); } Vec& operator^(Vec& rhs) { return Vec(*this)^=rhs; } }; Vec<double> v(3,4,12); Vec<double>V(12,4,3); Vec<double> c = v^V; Reply at: https://bugs.launchpad.net/gcc/+bug/544783/comments/6 ------------------------------------------------------------------------ On 2010-07-05T11:04:58+00:00 Paolo-carlini wrote: On it. Reply at: https://bugs.launchpad.net/gcc/+bug/544783/comments/7 ------------------------------------------------------------------------ On 2011-03-05T00:26:18+00:00 stevenb wrote: Paolo, still on it? Reply at: https://bugs.launchpad.net/gcc/+bug/544783/comments/8 ** Changed in: gcc Status: In Progress => Confirmed ** Changed in: gcc Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/544783 Title: compiling some template classes and got error re anonymous struct not in named type -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
