flit / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Unix Compile Errors for Type-Parameterized Tests #178

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. simply try to compile the attached file on Linux/Cygwin
2. check lines 16-19 in the attached file
3.

What is the expected output? What do you see instead?

The macro expansion does not work as expected (modifying every definition
of a typedef).

What version of the product are you using? On what operating system?

1.3.0 Cygwin/Linux (code snippet not working)
1.3.0 XP/Vista (code snippet working)

Please provide any additional information below.

Ubuntu 9.04
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --with-tune=generic
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) 

Original issue reported on code.google.com by clemens....@gmail.com on 6 Aug 2009 at 10:50

Attachments:

GoogleCodeExporter commented 9 years ago
Using 

TestFixture::myVector a 

solves the problem. Sorry for the mess...
Issue can be marked solved... 

Original comment by clemens....@gmail.com on 6 Aug 2009 at 12:57

GoogleCodeExporter commented 9 years ago
This is documented behavior.

Original comment by zhanyong...@gmail.com on 7 Aug 2009 at 3:54