[Bug c++/23398] New: [C++] ICE when compiling with -fmudflap
---mudflap-bug.cpp--- #include string struct AAA { AAA(const char*) {} }; extern std::string sss; extern void FFF(const AAA, int); struct XXX { void test ( void ); int iii; }; void XXX::test ( void ) { AAA aaa = ( sss + sss).c_str(); FFF( aaa, iii ); } - $ g++ -fmudflap -c mudflap-bug.cpp mudflap-bug.cpp: In member function 'void XXX::test()': mudflap-bug.cpp:24: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. $ g++ -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.0.1/configure --prefix=/usr/local/gcc-4.0.1--nocheck-native --with-gnu-as --with-gnu-ld --enable-threads=posix --with-arch=pentium3 --with-tune=pentium4 --enable-__cxa_atexit --enable-languages=c,c++ --disable-checking --disable-nls Thread model: posix gcc version 4.0.1 P.S. sorry, can't reduce the testcase anymore. -- Summary: [C++] ICE when compiling with -fmudflap Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: smelkov at mph1 dot phys dot spbu dot ru CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23398
[Bug c++/21484] New: [g++] using typename doesn't work in case template : template inheritance
Is it just me or what? ===nested_defs.cpp=== templatetypename T struct A { typedef T value_type; }; templateclass T struct B : AT { using typename AT::value_type; value_type x; }; int main() { Bint b; b.x = 0; return 0; } === [EMAIL PROTECTED] tmp]$ g++ -g -c -Wall nested_defs.cpp nested_defs.cpp:12: error: 'value_type' does not name a type nested_defs.cpp:12: note: (perhaps 'typename AT::value_type' was intended) nested_defs.cpp: In function 'int main()': nested_defs.cpp:20: error: 'struct Bint' has no member named 'x' [EMAIL PROTECTED] tmp]$ g++ -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.0.0/configure --prefix=/usr/local/gcc-4.0.0--nocheck-native --with-gnu-as --with-gnu-ld --enable-threads=posix --with-arch=pentium3 --with-tune=pentium4 --enable-__cxa_atexit --enable-languages=c,c++,java,f95 --disable-checking --disable-nls Thread model: posix gcc version 4.0.0 With Comeau C++ Intel 8.0 C++ it is ok. --- By the way, if i want to access all members of AT inside B, without explicit using, typedef, etc, what can i do? damn, if B is not template it works === templatetypename T struct A { typedef T value_type; }; struct B : Aint { value_type x; }; === if A is not template it also works: === struct A { typedef int value_type; }; templatetypename T struct B : A { value_type x; }; === only for template : template case it doesn't compile (g++, Comeau), although intel C++ 8.0 works ok: === templatetypename T struct A { typedef T value_type; }; templatetypename T struct B : AT { value_type x; }; int main() { Bint b; b.x = 0; return 0; } === [EMAIL PROTECTED] tmp]$ /opt/intel_cc_80/bin/icc -c nested_defs.cpp [EMAIL PROTECTED] tmp]$ echo $? 0 -- Summary: [g++] using typename doesn't work in case template : template inheritance Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: smelkov at mph1 dot phys dot spbu dot ru CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21484
[Bug c++/21484] [g++] using typename doesn't work in case template : template inheritance
--- Additional Comments From smelkov at mph1 dot phys dot spbu dot ru 2005-05-11 05:09 --- Excuse me. The following is unconditionally offtopic, but is there a way to use whole base namespace, say something like templatetypename T struct A { ... } templatetypename T struct B : AT { using AT::* ; or using AT::; }; /none of these works, but i think the idea is clear/ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21484
[Bug c++/19263] New: [g++-3.4.3 regression]: wrong-code: explicit inicialization of v8qi miscompiled
ReportedBy: smelkov at mph1 dot phys dot spbu dot ru CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19263