Thanks for the reply. I made the changes that you described, but I'm still experiencing the same behavior--namely that I think that I should see two unexpected errors since 1) the test case will not compile and 2) the expected error message is not printed.
Here are the steps to reproduce (assuming that a stage1 compiler has already been built and that version 4.6.0 20100831 (experimental) of the GCC is being used): 1) create the file pr99.C at <GCCSRC>/gcc/testsuite/g++.dg/template. 2) paste the following code in pr99.C: /*{dg-do compile}*/ template<typename S> class X {}; template<typename Q> int f(X<int>, X<Q>); template<typename B> int f(X<B>, X<int>); int main(void) { return f(X<int>(), X<int>());/*{ dg-error "int f(X<B>, X<int>)"} */ } 3) from the <GCC_BUILD> directory, run the following command: make -C gcc check-g++ RUNTESTFLAGS=dg.exp=pr99.C _____ What I actually see in the results is: Running /home/david/gcc/gcc/testsuite/g++.dg/dg.exp ... FAIL: g++.dg/template/pr99.C (test for excess errors) === g++ Summary === # of unexpected failures 1 //<--SHOULDN'T THIS BE 2 INSTEAD OF 1? /home/david/gccbuild/gcc/testsuite/g++/../../g++ version 4.6.0 20100831 (experimental) (GCC) On Tue, Sep 14, 2010 at 5:18 PM, Ian Lance Taylor <i...@google.com> wrote: > David Weiser <david...@gmail.com> writes: > >> I am looking at bug number 99 on >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=99 and I am adding a test >> case for it. >> The testcase looks like this: >> //-----------start test case >> /* >> {do-run compile} >> */ > > This should be > > /* { dg-do compile } */ > > or, equivalently for C++, > > // { dg-do compile } > > Ian > -- Thanks, dw