From nobody@FreeBSD.org  Mon Apr  2 04:46:05 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B38C8106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 Apr 2012 04:46:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 9F9D98FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 Apr 2012 04:46:05 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q324k5gs048078
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 2 Apr 2012 04:46:05 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q324k5LN048077;
	Mon, 2 Apr 2012 04:46:05 GMT
	(envelope-from nobody)
Message-Id: <201204020446.q324k5LN048077@red.freebsd.org>
Date: Mon, 2 Apr 2012 04:46:05 GMT
From: Jin Guojun <jguojun@sbcglobal.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ctags failed to generate tags properly
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         166570
>Category:       bin
>Synopsis:       ctags(1) failed to generate tags properly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 02 04:50:12 UTC 2012
>Closed-Date:    
>Last-Modified:  Mon Apr 02 06:01:37 UTC 2012
>Originator:     Jin Guojun
>Release:        8.x-R
>Organization:
>Environment:
8.3-BETA1 FreeBSD 8.3-BETA1  #0: Wed Feb 29 12:44:48 PST 2012 root@bsd-ms.scenix.com:/usr/src/sys/i386/compile/MinMax  i386

8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sat Mar  5 16:25:36 PST 2011     root@wolf.Belkin:/usr/src/sys/i386/compile/MinMax  i386
>Description:
% cat << GTC > gtags.c
#define MIN_ALEN   6   // MAX LEN
typedef float   FLOAT_T;

typedef enum    ENUM_T {
        EA = 100,
        EB,
        EC
} enum_t;
GTC

% ctags gtags.c # only enum_t TAG is generated

# comment the #define line with //, FLOAT_T TAG will gerated with incorrect content.
# completely remove the #define line, FLOAT_T can be generated properly;
# furthermore, never has a tag generated for EA, EB, and/or EC.

>How-To-Repeat:
See description
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
