1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -pedantic %s 2*f4a2713aSLionel Sambuc // expected-no-diagnostics 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc namespace PR12866 { 5*f4a2713aSLionel Sambuc struct bar { 6*f4a2713aSLionel Sambuc union { 7*f4a2713aSLionel Sambuc int member; 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc }; 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc void foo( void ) { 12*f4a2713aSLionel Sambuc (void)sizeof(bar::member); 13*f4a2713aSLionel Sambuc } 14*f4a2713aSLionel Sambuc } 15