PR c++/67876 - [6 Regression] ICE when compiling Firefox 38
authorMartin Sebor <msebor@redhat.com>
Thu, 26 Nov 2015 01:52:04 +0000 (01:52 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Thu, 26 Nov 2015 01:52:04 +0000 (18:52 -0700)
commite82f9ef748f25bbbdc9821efcb287ab1b48dd066
tree159f5ccf0d9ca397f77328c86b6fc299fdcf1484
parentae026741df1a3f1dfe86ffde544010027a4c08b1
PR c++/67876 - [6 Regression] ICE when compiling Firefox 38

gcc/cp
* pt.c (convert_template_argument): Make sure number of tree
operands is greater than zero before attempting to extract one.

gcc/testsuite/
* g++.dg/pr67876.C: New test.

From-SVN: r230924
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr67876.C [new file with mode: 0644]