Skip to content

Commit

Permalink
PR c++/38357
Browse files Browse the repository at this point in the history
	* g++.dg/template/crash87.C: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143403 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
sje committed Jan 15, 2009
1 parent 1d275ef commit c2bfeae
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2008-01-15 Steve Ellcey <sje@cup.hp.com>

PR c++/38357
* g++.dg/template/crash87.C: New test.

2009-01-15 H.J. Lu <hongjiu.lu@intel.com>

PR middle-end/37843
Expand Down
27 changes: 27 additions & 0 deletions gcc/testsuite/g++.dg/template/crash87.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Origin: PR c++/38357
// { dg-do compile }

class BUG
{
public:
bool name() { return true; }
};

template <bool T>
struct BUG1_5
{

};

template <bool name>
class BUG2 : BUG
{
public:
typedef BUG1_5<name> ptr; // { dg-error "could not convert template argument" }
};

int main()
{
BUG2<false> b;
return 0;
}

0 comments on commit c2bfeae

Please sign in to comment.