diff options
author | Craig Silverstein <csilvers2000@yahoo.com> | 2010-07-09 20:25:10 +0000 |
---|---|---|
committer | Craig Silverstein <csilvers2000@yahoo.com> | 2010-07-09 20:25:10 +0000 |
commit | 0193a72c6fc873c0c83119ab1e6f089719e09e1a (patch) | |
tree | 83c231130ad9024d574728e8c57813d575c439f5 /lib/Frontend/PCHWriter.cpp | |
parent | 04821c7e901d57a2aca09f89167d78dd038af9e4 (diff) |
Fix a crashing but trying to print a TemplateTemplateParmDecl
for code like this:
template<template<typename T> class U> class V {};
The problem is that the DeclPrinter assumed all TemplateDecls
have a getTemplatedClass(), but template template params don't
(so we got a NULL dereference). The solution is to detect if
we're a template template param, and construct the template
class name ('class U') specially in this case.
OKed by dgregor and chandlerc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108007 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriter.cpp')
0 files changed, 0 insertions, 0 deletions