mindw / googlemock

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

looser throw specifier for #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
IMPORTANT NOTE: PLEASE send issues and requests to
http://groups.google.com/group/googlemock *instead of here*.
This issue tracker is NOT regularly monitored.

If you really need to create a new issue, please provide the information
asked for below.

What steps will reproduce the problem?
1. When I make mock a method with throw() specifier,
   It is not built.
   MOCK_METHOD0(fn, void() throw (exception));

2. The following error happens.
   ClassNameTest.cpp:40 error: looser throw specifier for `virtual void ClassName::functionName()'
   ClassName.h:20: error:   overriding `virtual void ClassName::functionName() throw (std::exception)'

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

Which version of Google Mock are you using? On what operating system?
Google Mock : v 1.7.0
Google Test : v 1.7.0

Please provide any additional information below.

Original issue reported on code.google.com by cjw...@gmail.com on 29 Jul 2014 at 11:50